I'm trying to create a script with a for loop that take strings in as the parameters. Some of the strings have
spaces in them, and I can't get it to work properly. For example:
Code:
#!/bin/ksh
INFILE=snapshot.log
OUTFILE=summary.out
a="Lock waits"
b="Deadlocks detected"
for PARAM in ${a} ${b}
do
/usr/bin/grep ${PARAM} ${INFILE} >> ${OUTFILE}
done