bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug with script


From: Lisa
Subject: bug with script
Date: Sat, 28 Jul 2001 08:29:22 -0400

I was trying to do this but it keeps on repeorting that there is a bug.
 
#!/usr/bin/ksh

 long="$1"
 volume="$2"
 temperature="$3"

 while [ "$#" != "3" ]
 do

     echo "Please provide three arguments"
     echo 'The format should be length(cm/in) volume(ga/li)
 temperature(C/F)'
     echo "Note: Insert a space between each set of value."
     read inputentered

     echo "$inputentered" | awk
     '{if (NF != 3)
             print NF;
         {
             continue;
         }
         else
         {
             long="$1";
             volume="$2";
             temperature="$3";
             break;
         }
     }'

 done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]