|
|
|
|
|
|
| Author |
Message |
Ed Morton *nix forums Guru
Joined: 20 Feb 2005
Posts: 1073
|
Posted: Mon Feb 14, 2005 1:09 pm Post subject:
Re: grep pattern with variable included
|
|
|
erik wrote:
| Quote: | grep -A 420 ':dn ("CN=$dir'
/home/erik/solectron/conf/$dir/objects_5_0.C > ./wall-specific-grab
That is the command. The $dir is a variable. I cannot get the quotes
correct. The left paren is part of the actual search pattern. How can I
do this. I have tried putting double quotes on the outside but the
double quote before the CN gave me problems.
|
grep -A 420 ":dn (\"CN=$dir" ...
Ed. |
|
| Back to top |
|
 |
erik *nix forums beginner
Joined: 10 May 2005
Posts: 46
|
Posted: Mon Feb 14, 2005 12:13 pm Post subject:
grep pattern with variable included
|
|
|
grep -A 420 ':dn ("CN=$dir'
/home/erik/solectron/conf/$dir/objects_5_0.C > ./wall-specific-grab
That is the command. The $dir is a variable. I cannot get the quotes
correct. The left paren is part of the actual search pattern. How can I
do this. I have tried putting double quotes on the outside but the
double quote before the CN gave me problems. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 11:11 pm | All times are GMT
|
|
WoW Gold | Credit Cards | Credit Counseling | Mortgage | MPAA
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|