littleIdiot
MIS
I can't believe I'm struggling with this - I can't work out why it isnt working ...
The script I have entered bleow is not the script I am working on - I have writte it to show what I am trying to do:
Whi is this not working?!
I want to be able to pick out VEL ENVELOPE VELOCITY etc
What am I doing wrong?
The script I have entered bleow is not the script I am working on - I have writte it to show what I am trying to do:
Code:
#!/bin/ksh
#set -vx
#
# Check number of parameters
if [ $# -lt 1 ]
then
echo "Usage:"
echo " vel <word>"
exit
fi
WORD=$1
if [ "${WORD}" = *VEL* ]
then
echo "${WORD} contains VEL "
else
echo "${WORD} !contain VEL "
fi
exit
Whi is this not working?!
I want to be able to pick out VEL ENVELOPE VELOCITY etc
What am I doing wrong?