![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to uniq third field in a file | babycakes | UNIX for Dummies Questions & Answers | 1 | 02-01-2008 12:52 AM |
| Reindex or re-increment last field of txt file. | silenthands | Shell Programming and Scripting | 2 | 11-08-2007 10:43 AM |
| select last field from a file | kykyboss | Shell Programming and Scripting | 3 | 11-14-2006 07:15 AM |
| replace a similar field in a file | chiru_h | Shell Programming and Scripting | 2 | 11-01-2006 02:23 PM |
| Append a field to the end of each line of a file based on searching another file. | ultimate | Shell Programming and Scripting | 2 | 03-29-2005 07:21 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
display file where 4th field = 200704
Hello
I have a file which is pipe delimited. The 4 th field has value like 200704 or 200705 etc. Now i have to get only those records where 4th field is 200704 How can i do this? I have to get the whole record where 4th field = 200704 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
pls post ur file
|
|
#3
|
|||
|
|||
|
When the record is only one line use grep.
grep 200704 file |
|
#4
|
||||
|
||||
|
You're not supposed to cross post. See your other thread for a possible solution.
|
|
#5
|
|||
|
|||
|
No duplicate or cross-posting, please read the rules.
Continue here: display file where 4th field = 200704 Thread closed. |
|||
| Google The UNIX and Linux Forums |