Skip to main content
added 189 characters in body
Source Link
Shammel Lee
  • 4.5k
  • 1
  • 19
  • 21

Change

printf "\nPut the input: " read some_input

to

read -p "Put the input: " some_input

Example

for host in '1.1.1.100' '1.1.1.101' '1.1.1.102'
do
    read -p "Enter your input for ${host} " host_input
    echo "${host} says ${host_input}"
done

Change

printf "\nPut the input: " read some_input

to

read -p "Put the input: " some_input

Change

printf "\nPut the input: " read some_input

to

read -p "Put the input: " some_input

Example

for host in '1.1.1.100' '1.1.1.101' '1.1.1.102'
do
    read -p "Enter your input for ${host} " host_input
    echo "${host} says ${host_input}"
done
Source Link
Shammel Lee
  • 4.5k
  • 1
  • 19
  • 21

Change

printf "\nPut the input: " read some_input

to

read -p "Put the input: " some_input