forcemax's

delimiter +1

The slash as a delimiter

개인2007. 12. 7. 13:58

The slash as a delimiter

sed 's/\/usr\/local\/bin/\/common\/bin/' <old >new
UGLY

sed 's|/usr/local/bin|/common/bin|' <old >new
GOOD!!!

출처 : http://www.grymoire.com/Unix/Sed.html#uh-2

Comment +0