Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sed 's/VALUES[[:blank:]]*/VALUES/g' input >output
- $ sed 's/(VALUES)[[:blank:]]*/1/g' input >output
- $ sed "s/($values)[[:blank:]]*/1/g" input >output
- :%s/(VALUES)[[:blank:]]*/1/
- sed -e 's/VALUES +/VALUES/'
- $ cat file
- stuff and VALUES <--tab
- more VALUES <--three spaces
- VALUES <--tab, three spaces, tab
- $ sed 's/VALUESs*/VALUES/' file
- stuff and VALUES<--tab
- more VALUES<--three spaces
- VALUES<--tab, three spaces, tab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement