0
I have a directory that has 3 files : a.txt b.txt c.txt I have to delete first 4 lines from each file I want to use 'sed' or 'awk' or etc in Cygwin I do this:
for x in `ls`; do
sed '1,4d' $x
done
It works fine BUT I need to have the output in a newly created files e.g. a2.txt b2.txt c2.txt. How could I refactor my loop? Thanks