initial commit
This commit is contained in:
19
chapter27/function_read_input
Executable file
19
chapter27/function_read_input
Executable file
@@ -0,0 +1,19 @@
|
||||
read_input ()
|
||||
{
|
||||
# This function is used to save user input
|
||||
|
||||
LINE= # Initialize LINE to NULL
|
||||
|
||||
while true
|
||||
do
|
||||
read "ENTRY"
|
||||
if [[ $ENTRY = 99 ]]
|
||||
then
|
||||
echo "$LINE"
|
||||
break
|
||||
fi
|
||||
LINE="$LINE
|
||||
$ENTRY"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user