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
Moto Q, Exchange Server, User Accounts, and/or Active Sync problems
Hard drive seems to run all the time.
Crystal report
Compaq USB issues & AIMC Notebook keyboard, mouse...
Can I bind a subnet to an Ethernet interface in Red Hat Linux 9?
Dell OpenManage Active Directory Extensions installation not taking affect?
Convert For loop procedure to FORALL or Bulk Collect
ajax Collapsible Panel Content NOT on page load.
Ghost 2003 won't work with SATA CDROM
How can i disable Firewire via GPO or via the registry?