0

I have a directory with a series of text files and want to add a blank row after each line.

If I just wanted to alter one file, I could do this.

sed -i $' \n ' 00000BD7_ar.txt

However, how can I alter all files in the directory. Kinda like the following.

for file in *; do sed -i $' \n ' ${file}
ATMA
  • 1,450
  • 4
  • 23
  • 33

1 Answers1

0

sed can process multiple files.

sed -i $' \n ' *
John Kugelman
  • 349,597
  • 67
  • 533
  • 578