Author : Piyush Gupta
Command:
Uses:
read command is used for getting user input in a Linux shell script. -p switch with read command is used for showing some helpful text on-screen. Create a shell script named input.sh and add following content.
Lets execute the shell script
Input Password in Shell Script
If you want to take input of password in shell script. You must want to not to show any character on-screen entered by user. Use -s for silent mode. Using -s input characters are not echoed.
No comments:
Post a Comment