Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- awk -i inplace '/# MyLINE/ { sub ("^ *#","") } { print }' file
- awk -v FS='#' '{$2=""}1' file
- awk -v FS='#' '/^ *#/{$2=""}1' file
- awk -v FS='#' '/# MyLINE/{OFS="";$1=""}1' file
- awk -v FS='#' '/^#/{OFS="";$1=""}1' file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement