Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Bash for loop syntax
SUBMITTED BY:
DanielK
DATE:
Aug. 13, 2016, 5:21 p.m.
FORMAT:
Bash
SIZE:
133 Bytes
Raw
Download
Tweet
HITS:
523
Go to comments
Report
for
file
in
*.txt
;
do
ls
$file
;
done
for
item
in
$(
echo
foo
bar
baz
)
;
do
echo
$item
;
done
for
num
in
{
0
..9
}
;
do
echo
$num
;
done
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus