Difference between revisions of "While read line"
Jump to navigation
Jump to search
(Created page with "{{lc}} while read line") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[while]] read line | [[while]] read line | ||
+ | |||
+ | cat peptides.txt | while [[read]] line | ||
+ | do | ||
+ | # do something with $line here | ||
+ | echo $line | ||
+ | done | ||
+ | |||
+ | |||
+ | * [[tuple]] | ||
+ | |||
+ | == See also == | ||
+ | * {{for}} | ||
+ | * {{while}} | ||
+ | * {{Bash}} |
Latest revision as of 13:36, 2 April 2024
while read line
cat peptides.txt | while read line do # do something with $line here echo $line done
See also[edit]
for, for_each (Terraform), until ... do, while ... do
while
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: