1 2 3 4 5 6
#!/bin/sh head -n 4 < POTFILES.in > POTFILES.in.tmp grep -v "^[\\[#]" < POTFILES.in | sort >> POTFILES.in.tmp mv POTFILES.in.tmp POTFILES.in