Hey,
I know this might sounds elementary but I am trying to compare an integer to the output of a command and its not working EX:
#!/bin/sh
#
#
x=200
y=`du-sk | nawk '{print $1}'`
#this is where everything goes blank here trying to compare
#these 2 variables here.
while "$x" >= "$y"
do
#I am not having problems with this part of the script.
done
I know this might sounds elementary but I am trying to compare an integer to the output of a command and its not working EX:
#!/bin/sh
#
#
x=200
y=`du-sk | nawk '{print $1}'`
#this is where everything goes blank here trying to compare
#these 2 variables here.
while "$x" >= "$y"
do
#I am not having problems with this part of the script.
done