![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| How to delete this? | kenshinhimura | Shell Programming and Scripting | 1 | 07-02-2008 06:52 AM |
| how to delete content in a file (delete content only) | kittusri9 | Shell Programming and Scripting | 5 | 05-15-2008 01:12 PM |
| delete in c++ | nandlal | High Level Programming | 4 | 02-02-2008 12:48 PM |
| C++ = new and delete | arun.viswanath | High Level Programming | 3 | 09-13-2005 10:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Delete help
Please give me some hints with awk or something, to delete the lines corresponding to a fixed 2nd field, for which A line is absent.
Code:
$ cat file.txt #Test file a 1 2232 ert a 1 679 asd A 1 12 oio a 2 131 sd a 2 56 adsad a 2 567 sassa A 2 90 asd a 4 234 gfg a 4 566 erer a 5 233 yu A 5 232 yuyu Code:
#Test file a 1 2232 ert a 1 679 asd A 1 12 oio a 2 131 sd a 2 56 adsad a 2 567 sassa A 2 90 asd a 5 233 yu A 5 232 yuyu |
| Sponsored Links | ||
|
|