question about shell script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thungmail
    New Member
    • Mar 2008
    • 9

    question about shell script

    hi
    Im new to shepp script. I would like to ask how can I display a list of students in my class
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by thungmail
    hi
    Im new to shepp script. I would like to ask how can I display a list of students in my class
    echo "do u want to dsiplay the students"
    readline input
    then depending on the value of the input you can deceide what to do

    Raghuram

    Comment

    • kaarthikeyapreyan
      New Member
      • Apr 2007
      • 106

      #3
      Originally posted by thungmail
      hi
      Im new to shepp script. I would like to ask how can I display a list of students in my class
      if the list of names of students in your class are in a file this is wat u can do is

      Code:
      echo 'Do you want to display the list of students(y/n)'
      read flag
      if [ flag = y ]
      then
      cat (your_file_containing_names)
      else
      exit 1
      fi

      Comment

      Working...