Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~$ cat test.me
- hello world, I am here
- hello world, I am here
- hello world, I am here
- hello world, I am here
- hello world, I am here
- ~$ awk 'NF>1{$(NF-1)=""};1' test.me
- hello world, I here
- hello world, I here
- hello world, I here
- hello world, I here
- hello world, I here
- ~$ awk 'NF>1{$(NF-1)=""};1' test.me > test.me_tmp && mv test.me_tmp test.me
Add Comment
Please, Sign In to add comment