Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to use CUT ? ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
thanks please help me out??

hiren
 
CUT is a command used to cut a field from a file and display it on to the screen .

create a file $ cat > f1

name age group class sec

let these some of the fields in that file f1 .

suppose u wanna cut the third field

$ cut -d " " -f3

this will give a o/p of "group "

here d stands for the delimiter between the fields .

hope this is helpful

with regards
ramki
 
thanks a lot it is really working...

thanks again

hiren delwadia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top