how to cut fields | Unix Linux Forums | Shell Programming and Scripting

  Go Back    

Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

how to cut fields

Shell Programming and Scripting

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 12-29-2005
rajan_ka1 rajan_ka1 is offline
Registered User
Join Date: Sep 2005
Last Activity: 30 October 2008, 3:54 AM EDT
Posts: 130
Thanks: 0
Thanked 1 Time in 1 Post
how to cut fields

I want to cut two coloums simulatiously and paste in some other file

for ex:

cut d ' ' -f3 -f4 xxx | paste yyy - > zzz;

from the above i want to cut two fileds 3 and 4 and paste as last coloums of single file (zzz).

how to solve this

Sponsored Links
Old 12-29-2005
mahendramahendr mahendramahendr is offline Forum Advisor  
Registered User
Join Date: Dec 2005
Last Activity: 22 August 2008, 8:28 AM EDT
Location: London
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
cut -d" " -f3,4 xxx | paste yyy - > zzz
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Set variables from fields in fields Joq UNIX for Dummies Questions & Answers 3 09-25-2011 07:32 AM
Add fields in different files only if some fields between them match murpholinox Shell Programming and Scripting 10 06-07-2011 01:03 AM
awk sed cut? to rearrange random number of fields into 3 fields axo959 Shell Programming and Scripting 4 04-29-2009 05:18 AM
combining fields in two text fields shocker Shell Programming and Scripting 3 01-16-2008 11:27 AM

All times are GMT -4. The time now is 12:32 PM.