1. cut Command



Download 1.74 Mb.
Page1/4
Date21.04.2022
Size1.74 Mb.
#58638
  1   2   3   4
OS LAB-3
Winter-2020 3140708, hashcode , odd sem mark, Summer-2020 3140708

3. Implementing Network related and Advance commands(filters) of UNIX

1. cut Command

  • The cut command extracts a given number of characters or columns from a file.
  • Syntax :
  • cut [-options] [file]

  • Example :

Option

Use

cut -c

Select only the characters from each line as specified in LIST

cut -b

Select only the bytes from each line as specified in LIST

cut -f

Cuts the input file using list of field. The default field to be used TAB. The default behavior can be overwritten by use of -d option

cut -d

Specifies a delimiter to by used as a field. Default field is TAB and this option overwrites this default behavior

Download 1.74 Mb.

Share with your friends:
  1   2   3   4




The database is protected by copyright ©ininet.org 2024
send message

    Main page