4. How to hide number in shell scripting from a user at the time of inserting values like a password.

shell scripting

How to hide number in shell scripting from a user at the time of inserting values like a password.

#! /bin/bash

echo "enter your name: "

read -p 'username:' name

echo " enter your password: "

read -sp 'password' password

echo

echo " name: $name"

echo " password: $password"

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts

Copyright © 2014-2018 Thearticlenow | All Rights Reserved.