Difference between revisions of "Read"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-read
 
https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-read
 
  read
 
  read
  read -p
+
  [[read -p]]
 +
[[read -r]]
 +
[[read -r -d]]
  
 
  echo "First command" [[&&]] read && echo "Second command"
 
  echo "First command" [[&&]] read && echo "Second command"
  
  echo "First command" [[&&]] (read; echo "Press any key to continue or [[Ctrl+C]] to abort") && echo "Second command"
+
echo "First command" [[&&]] (echo "Press ENTER to continue or [[Ctrl+C]] to abort"; read) && echo "Second command"
  
 
== Related terms ==
 
== Related terms ==
 
* [[Builtin (Bash)]]
 
* [[Builtin (Bash)]]
* [[argparse]]
+
* <code>[[argparse]]</code>
 +
* <code>[[readline]]</code>
 
* [[Azure Pipelines]]: <code>[[ManualValidation@0]]</code>
 
* [[Azure Pipelines]]: <code>[[ManualValidation@0]]</code>
 
* [[Python]]: <code>[[input]]()</code>
 
* [[Python]]: <code>[[input]]()</code>
* [[&&]]
+
* <code>[[&&]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 10:48, 22 November 2023

Advertising: