Wednesday, 2 October 2013

printing first word in a txt file unix bash

printing first word in a txt file unix bash

So I'm trying to print the first word in each line of a txt file. The
words are separated by one blank.
cut -c 1 txt file
Thats the code I have so far but it only prints the first character of
each line. Thanks

No comments:

Post a Comment