linux - Append new line in all files of the folder -
i have 300 files in folder. have append 1 new line @ end of files in folder.
how can achieve using grep.
i tried following command not working
sed 's/$/\n/' /path/filename.txt
just echo "" >> file
. append new line @ end of file
.
to in files in folder:
for file in * echo "" >> "$file" done
from comments, in case have say:
for file in /path/*.txt echo "" >> "$file" done
Comments
Post a Comment