I'm calling my script like this: ./processName wws2
below is my syntax, how can I use the argument I'm passing to this command below..doesn't seem to like it being passed in as a parameter? There is a syntax error? Please assist. Thanks!
VAR=`ps -ef | grep apdel | awk '/$1/ {print $10}' | cut -d\/ -f5`
echo $VAR
below is my syntax, how can I use the argument I'm passing to this command below..doesn't seem to like it being passed in as a parameter? There is a syntax error? Please assist. Thanks!
VAR=`ps -ef | grep apdel | awk '/$1/ {print $10}' | cut -d\/ -f5`
echo $VAR