Search Results

Search: Posts Made By: thomsandy
6,022
Posted By thomsandy
How to delete one line from a text file
PATTERN="[cde]"
sed "/$PATTERN/d" $file

In the file data is stored as
[cde]:[123]:[1]:[2]
[abc]:[456]:[1]:[5]

I need to delete only the line containing the PATTERN [cde]

pls help to...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 02:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy