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
Slipstream XP with sp2 and IE7 plus updates
Question about stoping a netstream ?
winXP SP2: 'portable/mobile' usb devices (e.g. usb-stick) don't get drive letter assigned - but external harddrives do
How to make visible functions at package level in python?
union
aggregate function for varchar field
Graphic v. Movie clip symbol
How can i find the exchange server name to add outlook clients?
Brightstor 11.5 - Agent Error -- (318) "Can not get the information from Registry".
Microsoft remotely checking registry?