unix/linux data analysis / processing tools for large text format data------head

head

the first command i introduce here is head,later i will show others ,such as tail,wc,cat,vi,join and so on.

head means 'first' , so if you want to get the first part of your data file , you can use

head command.

such as :

head abc.dat

the result returns:

--------------------------------

C12CBU0,460-00-9506-48214,2522,BC56,
C12CGK6,460-00-9506-48031,2522,BB9F,
C12CHN1,460-00-9506-2370,2522,0942,,
C12CHN2,460-00-9506-48337,2522,BCD1,
C12CLM1,460-00-9506-20104,2522,4E88,,
C12CLM2,460-00-9506-20105,2522,4E89,,
C12CLM3,460-00-9506-20106,2522,4E8A,,
C12CLU0,460-00-9506-48244,2522,BC74,
C12CSU0,460-00-9506-48004,2522,BB84,
C12DAX0,460-00-9506-48271,2522,BC8F,

and you can know more by referring the HELP documents.

 

Usage: head [OPTION]... [FILE]...
Print the first 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
  -c, --bytes=[-]N         print the first N bytes of each file;
                             with the leading `-', print all but the last
                             N bytes of each file
  -n, --lines=[-]N         print the first N lines instead of the first 10;
                             with the leading `-', print all but the last
                             N lines of each file
  -q, --quiet, --silent    never print headers giving file names
  -v, --verbose            always print headers giving file names
      --help     display this help and exit
      --version  output version information and exit

N may have a multiplier suffix: b 512, k 1024, m 1024*1024.

Report bugs to <bug-coreutils@gnu.org>.