Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] grep, sed, and cat - oh my!



Nicolas Limare writes:

 > > line-replacing would happen on multiple files... but does "sed"
 > > already act on multiple files?
 > 
 > no. sed works line by line

In the sense that I think Dave means, it works on individual files:

steve@example.com ~ $ echo foo > 1.txt
steve@example.com ~ $ echo foo > 2.txt
steve@example.com ~ $ sed -i -e 's/foo/bar/' [12].txt
steve@example.com ~ $ cat 1.txt
bar
steve@example.com ~ $ cat 2.txt
bar
steve@example.com ~ $ 



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links