bash - read text from command line
Bash[Edit]
+
0
-
0
Bash - read text from command line
1 2 3 4 5#!/bin/bash read variable echo "Entered value is $variable"
[Edit]
+
0
-
0
Bash - read text from command line
1 2 3 4 5#!/bin/bash read -p "Enter value: " variable echo "Entered value is $variable"
[Edit]
+
0
-
0
Bash - read text from command line
1 2 3 4 5 6 7 8 9 10 11#!/bin/bash read variable echo "Entered value is $variable" # Usage example (command line preview): # # Hello World! # Entered value is Hello World!
[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!
[Edit]
+
0
-
0
Bash - read text from command line
1 2 3 4 5 6 7 8 9 10 11 12 13#!/bin/bash read variable_1 variable_2 echo "$variable_1" echo "$variable_2" # Usage example (command line preview): # # Hello World! # Hello # World!