sed -i s/aaa/bbb/ file
=
perl -pi -e s/aaa/bbb file
backup as .bak
sed -i.bak s/aaa/bbb/ file
PS.
-i [suffix] is wrong under Linux (space not allowed between -i and [suffix])
sed in Solaris not support this parameter
sed -i s/aaa/bbb/ file
=
perl -pi -e s/aaa/bbb file
backup as .bak
sed -i.bak s/aaa/bbb/ file
PS.
-i [suffix] is wrong under Linux (space not allowed between -i and [suffix])
sed in Solaris not support this parameter
This page contains a single entry by Pank published on November 26, 2004 3:30 PM.
An Analysis of the Skype Peer-to-Peer Internet Telephony was the previous entry in this blog.
Blog comment spam fighting is the next entry in this blog.
Find recent content on the main index or look in the archives to find all content.
沒想到您也用 -i switch 可以這樣用。學到囉!