Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. $ sed 's/VALUES[[:blank:]]*/VALUES/g' input >output
  2.  
  3. $ sed 's/(VALUES)[[:blank:]]*/1/g' input >output
  4.  
  5. $ sed "s/($values)[[:blank:]]*/1/g" input >output
  6.  
  7. :%s/(VALUES)[[:blank:]]*/1/
  8.  
  9. sed -e 's/VALUES +/VALUES/'
  10.  
  11. $ cat file
  12. stuff and VALUES <--tab
  13. more VALUES <--three spaces
  14. VALUES <--tab, three spaces, tab
  15.  
  16. $ sed 's/VALUESs*/VALUES/' file
  17. stuff and VALUES<--tab
  18. more VALUES<--three spaces
  19. VALUES<--tab, three spaces, tab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement