Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

how to cut fields

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 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 Unix and Linux 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 1 Time in 1 Post
cut -d" " -f3,4 xxx | paste yyy - > zzz
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 06:32 AM
Add fields in different files only if some fields between them match murpholinox Shell Programming and Scripting 10 06-07-2011 12:03 AM
awk sed cut? to rearrange random number of fields into 3 fields axo959 Shell Programming and Scripting 4 04-29-2009 04:18 AM
combining fields in two text fields shocker Shell Programming and Scripting 3 01-16-2008 10:27 AM

All times are GMT -4. The time now is 01:34 PM.