H I O X INDIA
LINUX Commands
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

LINUX / UNIX cmd
Introduction
Commands in A
Commands in B
Commands in C
Commands in D
Commands in E
Commands in F
Commands in G
Commands in H
Commands in I
Commands in J
Commands in K
Commands in L
Commands in M
Commands in N
Commands in P
Commands in R
Commands in S
Commands in T
Commands in U
Commands in W
Commands in Y
More about Linux
Feedback




cut Linux Commands


Topic

What is Linux cut Command?




Explanation

cut COMMAND:
     cut command is used to cut out selected fields of each line of a file. The cut command uses delimiters to determine where to split fields.

SYNTAX:
  The Syntax is
     cut [options]

OPTIONS:
     
-c Specifies character positions.
-b Specifies byte positions.
-d flags Specifies the delimiters and fields.



EXAMPLE:
     Lets create a file file1.txt and let it have the following data:
Data in file1.txt
This is, an example program,for cut command.
  1. cut -c1-3 text.txt
    Output:
    Thi
    

    Cut the first three letters from the above line.

  2. cut -d, -f1,2 text.txt
    Output:
    This is, an example program
    

    The above command is used to split the fields using delimiter and cut the first two fields.






        Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Other Links