Think about how you would '.. remove the first word' from a line using Perl. Then do that on each input line, and print the result to the output file.
You can do it using a regular expression (in fact, there are probably several different ways), but you could also split the line up into words, then re-build the line using all but the first word.
In reply to Re: Remove the first word for each lines from a text file
by talexb
in thread Remove the first word for each lines from a text file
by ArifS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |