![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| delete n last lines of a file | ncatdesigner | Shell Programming and Scripting | 7 | 05-17-2008 07:07 AM |
| delete first 100 lines from a file | salaathi | SUN Solaris | 3 | 11-15-2007 12:01 AM |
| delete first 100 lines rather than zero out of file | thepurple | SUN Solaris | 7 | 11-14-2007 09:35 AM |
| Delete lines in a file | umal | Shell Programming and Scripting | 6 | 02-08-2006 09:08 AM |
| delete all lines in file | strok | UNIX for Dummies Questions & Answers | 6 | 03-11-2002 06:27 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
delete the lines from file
i have two files & want to delete the lines from 2nd file which matches with 1st file
|
| Forum Sponsor | ||
|
|
|
|||
|
You can do a diff and then write these records into a new file and delete file2.
then rename it to file2. U need some minor tweaking for this to work. However, for this the File 1 must be a Master file. It should always contain all the records which could be present in the file2. |
|||
| Google UNIX.COM |