RHEL 6, CENTOS6

Gnu Sed Utility

Example :

removing # (commented Lines) from a file

sed '/ *#/d; /^ *$/d' /sourcefile >/destfile


 


No comments:

Post a Comment