Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. awk -i inplace '/# MyLINE/ { sub ("^ *#","") } { print }' file
  2.  
  3. awk -v FS='#' '{$2=""}1' file
  4.  
  5. awk -v FS='#' '/^ *#/{$2=""}1' file
  6.  
  7. awk -v FS='#' '/# MyLINE/{OFS="";$1=""}1' file
  8.  
  9. awk -v FS='#' '/^#/{OFS="";$1=""}1' file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement