Need a command to remove the last word in the first line of a file

Published: 22/08/2019
Need a command to remove the last word in the first line of a file
Source: WWW.UNIX.COM

I have a eg file op.txt Code: --------- This is a cat This is a fat cat This is a fat black cat --------- I want to remove only the word cat from the first alone .can somebody help. please do wrap your samples in CODE TAGS As per forum rules.

Read more
Related news
Comment
FACEBOOK