![]() |
Hello and Welcome from 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 |
| Searching and deleting | beardiebeardie | UNIX for Dummies Questions & Answers | 3 | 08-09-2007 12:51 AM |
| Deleting from Mac on GUI? | wmosley2 | OS X (Apple) | 1 | 12-10-2003 11:06 PM |
| deleting lines | ajnabi | Shell Programming and Scripting | 8 | 05-02-2003 12:50 PM |
| deleting nfs directories... | piltrafa | UNIX for Dummies Questions & Answers | 3 | 01-30-2003 12:33 PM |
| usb - deleting (irq) | termiEEE | UNIX for Dummies Questions & Answers | 1 | 04-18-2002 06:56 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Deleting by ID
Need to delete records from a text file. Very new to this and am using pico. The only way i can think of doing this is to generate an ID for every record then tell it to delete that particular ID. First question is how if possible do i give each entry an ID number, the second is would this code work to delete an ID entry
sed '/.*ID.*/d' list.txt > list.txt Any other suggestions on ways items can be deleted from a text file? Thanks for your help |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|