Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [hello] - one
- [hello] - two
- [hello] - three
- [hello] - four
- one
- two
- three
- four
- $ awk -F' *- *' '{ print $NF }' << EOF
- > [hello] - one
- > [hello] - two
- > [hello] - three
- > [hello] - four
- > EOF
- one
- two
- three
- four
- $ sed 's/^[hello] - //' << EOF
- > [hello] - one
- > [hello] - two
- > [hello] - three
- > [hello] - four
- > EOF
- one
- two
- three
- four
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement