Difference between revisions of "Read (Bash buildin)"
Jump to navigation
Jump to search
(Created page with "{{Draft}} == Related terms == * Bash == See also == * {{programming}}") |
|||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{lowercase}} |
+ | https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-read | ||
+ | read | ||
+ | [[read -p]] | ||
+ | [[read -r]] | ||
+ | [[read -r -d]] | ||
+ | |||
+ | echo "First command" [[&&]] read && echo "Second command" | ||
+ | |||
+ | echo "First command" [[&&]] (echo "Press ENTER to continue or [[Ctrl+C]] to abort"; read) && echo "Second command" | ||
== Related terms == | == Related terms == | ||
− | * [[Bash]] | + | * [[Builtin (Bash)]] |
+ | * <code>[[argparse]]</code> | ||
+ | * <code>[[readline]]</code> | ||
+ | * [[Azure Pipelines]]: <code>[[ManualValidation@0]]</code> | ||
+ | * [[Python]]: <code>[[input]]()</code> | ||
+ | * <code>[[&&]]</code> | ||
+ | == See also == | ||
+ | * {{read}} | ||
+ | * {{Bash}} | ||
− | + | [[Category:Bash]] | |
− |
Latest revision as of 07:15, 9 July 2024
https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-read
read read -p read -r read -r -d
echo "First command" && read && echo "Second command"
echo "First command" && (echo "Press ENTER to continue or Ctrl+C to abort"; read) && echo "Second command"
Related terms[edit]
See also[edit]
read
,read -r, read -p, input(), read -r -d, EOF
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: