Skip to main content
Commonmark migration
Source Link

When you use cut command then it takes two main arguments

-d : which stand for delimiter

 

-f : which stand for field to be cut from the input file

Ex. cut - d "|"  - f1, 2 input_filename

Here the output would be separated by delimiter "|" and it will cut only 2 fields from the input file

If you have following lines in your file

Alex|120000|Admin|1999

Then it will cut 2 fields which are

Alex|120000

When you use cut command then it takes two main arguments

-d : which stand for delimiter

 

-f : which stand for field to be cut from the input file

Ex. cut - d "|"  - f1, 2 input_filename

Here the output would be separated by delimiter "|" and it will cut only 2 fields from the input file

If you have following lines in your file

Alex|120000|Admin|1999

Then it will cut 2 fields which are

Alex|120000

When you use cut command then it takes two main arguments

-d : which stand for delimiter

-f : which stand for field to be cut from the input file

Ex. cut - d "|"  - f1, 2 input_filename

Here the output would be separated by delimiter "|" and it will cut only 2 fields from the input file

If you have following lines in your file

Alex|120000|Admin|1999

Then it will cut 2 fields which are

Alex|120000

When you use cutcut command then it takes two main arguments -d : which stand for delimiter -f : which stand for field to be cut from

-d : which stand for delimiter

-f : which stand for field to be cut from the input file

Ex. cut - d "|"  - f1, 2 input_filename

Here the input file Ex. cut - d "|" - f1, 2 input_filename Here the outputoutput would be separated by delimiter "|" and it will cut only 2 fields from the input file If

If you have following lines in your file Alex|120000|Admin|1999 Then

Alex|120000|Admin|1999

Then it will cut 2 fields which are Alex|120000

Alex|120000

When you use cut command then it takes two main arguments -d : which stand for delimiter -f : which stand for field to be cut from the input file Ex. cut - d "|" - f1, 2 input_filename Here the output would be separated by delimiter "|" and it will cut only 2 fields from the input file If you have following lines in your file Alex|120000|Admin|1999 Then it will cut 2 fields which are Alex|120000

When you use cut command then it takes two main arguments

-d : which stand for delimiter

-f : which stand for field to be cut from the input file

Ex. cut - d "|"  - f1, 2 input_filename

Here the output would be separated by delimiter "|" and it will cut only 2 fields from the input file

If you have following lines in your file

Alex|120000|Admin|1999

Then it will cut 2 fields which are

Alex|120000
Source Link

When you use cut command then it takes two main arguments -d : which stand for delimiter -f : which stand for field to be cut from the input file Ex. cut - d "|" - f1, 2 input_filename Here the output would be separated by delimiter "|" and it will cut only 2 fields from the input file If you have following lines in your file Alex|120000|Admin|1999 Then it will cut 2 fields which are Alex|120000