cut – used for removing/parsing text in specific files or strings.
-d parameter which stands for delimiter.
-f parameter for file which then needs a number of how many lines to cut.
Example: using a , as a delimiter to cut the number of fields specified.
cut -d “,” -f 2 hello.c
As an Amazon Associate, I earn from qualifying purchases.
No comments:
Post a Comment