Thursday, June 23, 2011

sed

http://linux.vbird.org/linux_basic/0330regularex.php

sed 's/xxx/yyy/g' XXX.txt

#print the sub string you want...
echo your_string | sed 's/head\(.*\)tail/\1/g'

No comments:

Related Posts Plugin for WordPress, Blogger...