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
Adding a modified sysprep.inf file to a Ghost image via Ghost Explorer not functioning properly
Redirect user shortcuts to new server name?
Make Outlook express default mail handler
Unable to locate loadable module in module_path
Vectorization algorithm?
citrix publishing content
"The object *************" in the message tracking logs can't be found in the directory. The object may have been deleted. The tracking history may be incorrect."
Oracle.ini & FORMS45_PATH
MS SQL Reporting Services: Formatting to Currency
Crystal Reports, ASP - How to create a web site to run reports out of MS Access 2000 tables