vi/vim, how can I write out the nth word of all lines to a new file
0
votes
4
answers
1651
views
How can I write out the nth word of all lines to a new file?
For example, I want the second word of all lines wrote out in new_file.txt:
old_file.txt:
pippo pluto paperino
gigi lui marco
piero andrea chiara
new_file.txt:
pluto
lui
andrea
Asked by Andrea Spiezia
(9 rep)
Jul 11, 2019, 02:53 PM
Last activity: Nov 23, 2021, 12:24 PM
Last activity: Nov 23, 2021, 12:24 PM