My Tech Notes
sed: how to skip/delete lines starts with #
To delete/skip the lines starts with #:
sed '/^#/d' inputFile
To delete/skip the lines where the very first non-space character is #:
sed '/^[[:space:]]*#/d' inputFile
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment