Berkeley CSUA MOTD:Entry 21022
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2001/4/18 [Computer/SW/Languages/Perl, Computer/SW/Unix] UID:21022 Activity:high
4/18    I want to filter a file with sed and store the output back into
        the same file.  Is there a way to do this without a temp file?
        \_ no, if you want to do this use either awk or perl (perferably
           perl)
           \_ Please use a language (preferably English).
           \_ perl -pi -e 's/.../.../g ; s/other/foo/g' file1 file2 ...
        \_ yes.