better use global substitution in case there are more than one patterns in one line, "s#.....#.....#g" or use sed: sed -e "s#.....#.....#g" FILE > newFile
【在 i***e 的大作中提到】 : perl -pi.bak -e 's|||' FILE : This should make the changes you want to FILE and save the original file to : FILE.bak.
【在 d***d 的大作中提到】 : better use global substitution in case there are more than one patterns : in one line, "s#.....#.....#g" : or use sed: : sed -e "s#.....#.....#g" FILE > newFile