cut 行数据操作

http://blog.sina.com.cn/s/blog_6238358c0100hb90.html


NAME
       cut - remove sections from each line of files

SYNOPSIS
       cut [OPTION]... [FILE]...

DESCRIPTION
       Print selected parts of lines from each FILE to standard output.

       Mandatory arguments to long options are mandatory for short options too.

       -b, --bytes=LIST
              select only these bytes

       -c, --characters=LIST
              select only these characters

       -d, --delimiter=DELIM
              use DELIM instead of TAB for field delimiter

       -f, --fields=LIST
              select  only  these fields;  also print any line that contains no delimiter character,
              unless the -s option is specified

       -n     with -b: don’t split multibyte characters

       --complement
              complement the set of selected bytes, characters or fields.

       -s, --only-delimited
              do not print lines not containing delimiters

你可能感兴趣的:(C++,c,Blog,C#,F#)