Generic Usenet Account
2010-10-14 22:47:49 UTC
Hi,
I am having trouble with my shell script. I have been able to
reproduce the problem with the small scripting snippet:
======
#!/bin/ksh
cmd="egrep -n 'Pat-1 | Pat-2' file"
echo "Executing $cmd"
`$cmd` # `echo $cmd` also does not work
=====
I know that I am doing something really silly. Any help will be
appreciated.
Thanks,
Ramesh
I am having trouble with my shell script. I have been able to
reproduce the problem with the small scripting snippet:
======
#!/bin/ksh
cmd="egrep -n 'Pat-1 | Pat-2' file"
echo "Executing $cmd"
`$cmd` # `echo $cmd` also does not work
=====
I know that I am doing something really silly. Any help will be
appreciated.
Thanks,
Ramesh