Thursday, 5 September 2013

How to check if string is a comment?

How to check if string is a comment?

How do I check if string starts with '#' ?
#path /var/dumpfolder
I tried awk for
awk -F '' '{print $1}'
Is there any better way ?

No comments:

Post a Comment