Guest_imported
New member
- Jan 1, 1970
- 0
any ideas as to why this isn't working, please??
It is a script to determine which file is longer in line length.....
let j = " $(wc -l <$ file)"
if [ $1 -gt $2 ]
then
echo "$1 is longer than $2"
elif
[ $1 -eq $2 ]
then
echo "$1 is the same length as $2"
else
[ $1 -lt $2 ]
echo "$2 is longerthan $1"
fi
Thank you!!!
It is a script to determine which file is longer in line length.....
let j = " $(wc -l <$ file)"
if [ $1 -gt $2 ]
then
echo "$1 is longer than $2"
elif
[ $1 -eq $2 ]
then
echo "$1 is the same length as $2"
else
[ $1 -lt $2 ]
echo "$2 is longerthan $1"
fi
Thank you!!!