If I just want to see the first few lines of the file, the number of fields per row (number of columns), my file is tab as a delimiter (this can be specified by itself), its specific command is as follows:
Head FileName | Awk-f'\ t'{print NF}'
If you want to consider stitching files by column, you can:
Paste-d'\ t' file1 file2
What if you want to stitch an empty field to the first line of a file? the steps are as follows:
First create an empty file, and then splice:
Touch file1paste-d ' \ t ' file1 file2
or directly
Paste-d ' \ t ' file1 file2 #file1 is not exist
Note that in the Windows and Linux Xixia, line breaks are not the same, Windows uses "\ r \ n", and Linux uses "\ n", so if it is the file interaction between the two systems, especially to the Windows files under Linux processing, delete the redundant "\ r".
Number of Linux output file columns, stitching files