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