![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| exclude a line | big123456 | Shell Programming and Scripting | 3 | 04-24-2008 09:31 AM |
| deleting multiple records from a huge file at one time | dsravan | Shell Programming and Scripting | 5 | 02-06-2008 07:17 AM |
| Count No of Records in File without counting Header and Trailer Records | guiguy | Shell Programming and Scripting | 2 | 06-07-2007 09:15 AM |
| Exclude & Zip | dreams5617 | Shell Programming and Scripting | 1 | 02-11-2007 04:01 PM |
| tar: how to exclude subdirectories? | kymberm | Filesystems, Disks and Memory | 7 | 10-15-2002 12:53 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
exclude multiple records
Hi
I need to exclude multiple records in file .Using grep -v ,can exclude that record Ex: If want to exclude 0012777201,0012777202 use grep two times .Is there any command to achive this through single command ?( cann't use grep multiple times if need to exclude multiple records in husge file) grep -v 0012777201 a.txt >a1.txt grep -v 0012777202 a1.txt >a2.txt a.txt ==== 20080331|2505|0012777201|1|U|U|U| 20080331|2505|0012777202|1|U|U|U| 20080331|2505|0012777204|1|U|U|U| 20080331|2505|0012777205|1|U|U|U| 20080331|2505|0012777206|1|U|U|U| Thanks, MR |
| Forum Sponsor | ||
|
|