I am trying to use this in a script
to analyze what commands another script is using.
Here's a sample script file.
I am trying to write a grep,egrep sed or awk
command that will figure out which of
the lines below is actually a command
#!/usr/bin/ksh
echo "Running wc command"
echo "hello"|wc
# this is where I run wc
wc
wc
wc # running command
TEXT=`echo wc`
TEXT2=`echo "wc"`
In this particular instance,
only lines 3,5,6, and 7
should be returned. Robert G. Jordan
Robert@JORDAN2000.com
Unix Sys Admin
Chicago, Illinois U.S.A.
to analyze what commands another script is using.
Here's a sample script file.
I am trying to write a grep,egrep sed or awk
command that will figure out which of
the lines below is actually a command
#!/usr/bin/ksh
echo "Running wc command"
echo "hello"|wc
# this is where I run wc
wc
wc
wc # running command
TEXT=`echo wc`
TEXT2=`echo "wc"`
In this particular instance,
only lines 3,5,6, and 7
should be returned. Robert G. Jordan
Robert@JORDAN2000.com
Unix Sys Admin
Chicago, Illinois U.S.A.