13

Using a Regex with double quotations

view full story
linux-howto

http://www.unix.com – Hi All, for a script I'm writing I need to be able to put the following command in a variable: Code: tail -30 <file> | egrep "JBoss \(MX MicroKernel\) .* Started" I thought surround it with single quotes would work. However, it doesnt escape the wildcard, and results in the wildcard being expanded with local files beginning with "." I've tried a hundred other ways to get this to work. Also some ways result in the correct results when i run echo $containingVar but running the command from the variable gives me this Code: $var        & (HowTos)