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
ARCSERVE BACKUP 11.5 (Exchange2003 Database imcremental backup error)
Change domain name of internal network
Gmail - is there a way of attaching an email from gmail to a new message?
Protecting against injection attacks
Moving mail store on Exchange 2003 SP2 cluster
tagging files to be zipped for download
IIS repair
SQL Scheduled task problem
javascript precondition based on the textbox value
check if an NTEXT field is empty