linux - Regex remove comments but not shebang -
i got regex removes comments in bash using regex code
'/^\#/d'
but removes #! should not because it's not comment tag shebang
so how can done ignore #! in regex?
this line remove every comment starting # not followed !.
'/^#[^!]/d'
Comments
Post a Comment