Hello Everyone,
I'm new to Unix and the book I'm using doesnt seem to be providing me the answer I'm looking for. Or perhaps I'm too blurry eyed at this point to see it.
What I need is a Sed command in a script I'm working on that will...
1. Look for a string variable $ItemNum in a data file.
2. When it finds an instance of $ItemNum - Delete that entire line of text where $ItemNum resides.
The best I've managed so far is to delete the entire data file on accident (a copy is safely in another directory of course).
Thank you for your time and any tips.
Regards,
Poloman
I'm new to Unix and the book I'm using doesnt seem to be providing me the answer I'm looking for. Or perhaps I'm too blurry eyed at this point to see it.
What I need is a Sed command in a script I'm working on that will...
1. Look for a string variable $ItemNum in a data file.
2. When it finds an instance of $ItemNum - Delete that entire line of text where $ItemNum resides.
The best I've managed so far is to delete the entire data file on accident (a copy is safely in another directory of course).
Thank you for your time and any tips.
Regards,
Poloman