Search Results

Search: Posts Made By: Peasant
1,099
Posted By Peasant
-q is for silent (don't print anything) Use...
-q is for silent (don't print anything)

Use it without, if your grep doesn't have it.
1,099
Posted By Peasant
I'm guessing he wants to check the file for entry...
I'm guessing he wants to check the file for entry before sedin' it.

Something like :

echo "Which entry?"
read ENTRY
grep -q "^$ENTRY" file && sed "/^$ENTRY/d" file || printf "Entry $ENTRY...
Showing results 1 to 2 of 2

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