Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell How to read hidden input from terminal and pipe it to another command

$ read -s       # I type `secret`
$ echo $REPLY
secret
$ printf %s $REPLY | wc -c
6
$ unset REPLY
$ echo $REPLY
# empty now
 
PREVIOUS NEXT
Tagged: #shell #How #read #hidden #input #terminal #pipe #command
ADD COMMENT
Topic
Name
9+5 =