News for hackers. Stuff that matters.
Re:Batch editing files with ed by JoshMnem on Saturday May 12, 2018 @11:12PM (#17057192)
Thanks for the tips. I put them in a file, because I saw someone using ed last year in a script and started looking at ex from there.

    diff -e file1 file2 > ed_script
Using echo (along with your other suggestions) is probably better for that example.
Re:Batch editing files with ed by teddyh on Sunday May 13, 2018 @07:50AM (#17058471)
Note: I forgot the “--max-args=1” option to xargs.