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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -