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
Can you validate email addresses without SENDING it to the address? We want to confirm before sending bulk marketing emails. Some will be old and outdated.
Get mailboxes/messages from Recovery Storage Group without ExMerge
How to Setup Zen Cart on Windows XP
can i move the $hf_mig$ file to the D: drive?
DTSTaskExecResult_Success
.mdb vs .adp front end with SQL server backend
0x75f819ad refrened memory 0x75f819ad coud not be writtin coud not be writtin
Configuring Apache web Server for multiple domains
Spybot S&D fails to run
Perl script to delete files from directory