There is a file which the delimiter is tab ,when i use the command
cut -d \t file.txt #or "\t" or "\\t"
I get this message
cut: you must specify a list of bytes, characters, or fields
Try `cut –help’ for more information.
How to use the cut command?
Cut splits the input lines at the given delimiter (-d, –delimiter).
To split by tabs omit the -d option, because splitting by tabs is the default.
By using the -f (–fields) option you can specify the fields you are interrested in.
You can also specify the output delimiter (–output-delimiter) and get rid of lines not containing any delimiters (-s/–only-delimited)
If you are interrested in the first field of your input file simply do…