[Edit]
+
0
-
0
Bash - read text from command line
1 2 3 4 5 6 7 8 9 10 11#!/bin/bash read -p "Enter value: " variable echo "Value is $variable" # Usage example (command line preview): # # Enter value: Hello World! # Value is Hello World!
1 2 3 4 5 6 7 8 9 10 11#!/bin/bash read -p "Enter value: " variable echo "Value is $variable" # Usage example (command line preview): # # Enter value: Hello World! # Value is Hello World!