1

File editing with out creating a new file

view story
linux-howto

http://www.unix.com – I need edit some characters in a file, but without creating intermediatory file and also one liner. I tried: Code: cat foo.txt | sed '/s/abc//g' > foo.txt cat foo.txt | sed '/s/abc//g' >> foo.txt First one is making foo.txt to zero byte, while second one is appending my desired output to existing content. Actually I done have -i option in sed. Any otherway to implement this ? Thanks! (HowTos)