Microsoft
Software
Hardware
Network
Question : access shell variables in egrep
Hi,
I want to remove any lines in the report that have the value of $curver and store in results..
This is not working:
cat report | egrep -v $curver > results
I've googled for ages on this.. not very experienced with shell scripting.
Anyone know how this can be done?
Regards,
Kevin
Answer : access shell variables in egrep
try
cat report | egrep -v "$curver" > results
OR
eval cat report | egrep -v "$curver" > results
Since $curver might have spce(s) in it.
Random Solutions
Some Filename Fonts Are Blue
options for repairing unstable laptop - low level re-format?
Query to Dump entire mySQL database?
Can't boot XP: recycles, Safe mode fails
I need to install multiple network printers using AD or a startup batch file.
SMTP Virtual Server Access Settings
Citrix Client in locked PCs
outlook "You have new mail" notification pop up
priv1.stm size, exchange 16 gb limit
Informix : Subtract minutes from datetime