Jump to content

cher

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. cher

    c angell

    Shovon, I have CLEANYORN='echo $YORN | cut -c -1 | tr [:upper:] [:lower:]' this $YORN is the read from the yes or no answer from the question do you want to run the script again and then takes the yes or no ( or Y or N) down to just a lowercase one letter from the users answer as y or n ..... CLEANYORN='echo $YORN | cut -c -1 | tr [:upper:] [:lower:]' that is then why the = = in the while command
  2. cher

    c angell

    I have CLEANYOURN='echo $YORN | cut -c -1 | tr [:upper:] [:lower:]' this $YORN is the read from the yes or no answer from the question do you want to run the script again
  3. cher

    c angell

    i have a short script to add new users with groups and passwords the last question asks "do you want to add another user (y/n)?' # ## then if the answer is y I want to run the script of 5 questions again. as a while condition while [ "$CLEANYORN=" = "y" ] do ./script3 done So I have done this WHILE loop, which does not error and when true (y) it goes back to command line and does not execute the script again to add another user.
×
×
  • Create New...