bash script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zeynep
    New Member
    • Jan 2008
    • 1

    bash script

    hello
    I am trying to write a menü script i would like to make small applications like add ,delete users.But i dont know how my codes here

    hello
    i would like to add users but how?
    in man writing useradd -d

    #!bin/bash
    while
    do
    echo"----Menu---"
    echo "add user"
    echo "delete user"
    echo "change password"
    echo "Exit"

    echo "please enter your choice"
    read choice
    case $choice in
    i) echo "Enter your name and surname"
    useradd -d
    ;;
    esac
    done

    may you help me ?
Working...