My Tech Notes
Search This Blog
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment