Tag: cat

awk and tabs in input and output

Why does awk incorrectly detect tab delimited data boundaries (input field separator) The following command will return an empty result instead of the expected third column: echo '1 2 3 4 5 6' | awk -F'\t' '{ print $3 }' In the command, instead of the standard FS (Input field separator), which is a space by default, the -F'\t' option...

How to split a large file (text or binary) into smaller files (SOLVED)

split command instructions I have a large (by the number of lines) text file that I would like to split into smaller files, also by the number of lines. So if my file has about 2 million lines, I would like to split it into 10 files containing 200k lines, or 100 files containing 20k lines (plus one file with...
Loading...
X