Difference between revisions of "While read line"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
echo $line | echo $line | ||
done | done | ||
+ | |||
+ | |||
+ | |||
+ | {{for}} | ||
+ | |||
+ | {{while}} | ||
+ | |||
+ | {{Bash}} |
Revision as of 14:08, 28 September 2023
while read line
cat peptides.txt | while read line do # do something with $line here echo $line done
for, for_each (Terraform), until ... do, while ... do
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: