![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| have a file with 300 columns | dummy_needhelp | Shell Programming and Scripting | 4 | 11-05-2007 01:08 AM |
| Copy the first & third columns in to another test file. Its very urgent please | sai_kris_007 | Shell Programming and Scripting | 5 | 09-30-2007 03:13 AM |
| Sun's 'Project Copy Linux' not a Linux copy - Register | iBot | UNIX and Linux RSS News | 0 | 07-29-2007 06:31 AM |
| Row to Columns | vskr72 | UNIX for Dummies Questions & Answers | 4 | 03-21-2007 09:53 AM |
| add columns with awk | tonet | Shell Programming and Scripting | 4 | 06-21-2005 04:02 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
copy columns only IF
Hi again,
Can someone please help me on extracting only certain columns from any text (Tab Delimited). Eg. Read all the text files under zzz directory (Tab Delimited). If the cell value in column 8 contains the following strings ( HP OR IBM OR Dell) Then Copy Colum 1, Colum 4, Colum 8. I tried this code but it didn’t work. Find . -name '*PC*.txt' | gawk -F\\\t $1,$4,$8 '$8=="HP" or "IBM" or "Dell" {print}' thanks in advance ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|