![]() |
|
|
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 |
| Search for string dublicates in column | lulle | Shell Programming and Scripting | 7 | 02-19-2008 04:32 PM |
| String search and return value from column | jaydeep_sadaria | Shell Programming and Scripting | 3 | 01-12-2008 04:31 AM |
| column based search | user_007 | Shell Programming and Scripting | 8 | 07-01-2007 06:52 AM |
| Select records based on search criteria on first column | shashi_kiran_v | UNIX for Dummies Questions & Answers | 2 | 12-02-2005 01:49 PM |
| Search for by column and delete line | thudak | Shell Programming and Scripting | 4 | 04-24-2002 10:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Can SED Search By Column?
Hi all,
I am trying to search for a keyword in the fourth column of a massive carrot(^) delimited file and unfortunately I cannot use AWK (which would have been ideal). Can SED (or maybe even GREP) perform a search like this? |
|
||||
|
Quote:
![]() |
|
||||
|
Quote:
Example: If I'm searching for "SMITH" then cut -f4 -d \^ filename | sed -ne '/SMITH/p' returns: SMITH SMITH I need it to return: data1^adbde^1981^SMITH ender2^23232^1972^SMITH |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|