We’re rewarding the question askers & reputations are being recalculated! Read more.
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 22565

Control flow refers to the order that computer code is executed in when a program or script is running. Examples include loops (code is repeated) and conditionals where one branch is run instead of another. Use this tag for questions about control flow in scripts or programs – not questions about terminal flow control.

17
votes
Commands in a pipeline run concurrently, that's the whole point of pipes, and inter-process communication mechanism. In: cmd1 | cmd2 cmd1 and cmd2 are started at the same time, cmd2 processes the …
answered Oct 25 '18 by Stéphane Chazelas
3
votes
s="myOutput"; grep -Fxqe "$s" < "$file" || printf "%s\n" "$s" >> "$file"
answered Jan 14 '18 by Stéphane Chazelas
27
votes
for loops loop on the positional parameters if no in value1 value2... part is specified in all Bourne-like shells. That was already the case in the Bourne shell from the late 70s, though in the Bourn …
answered Jan 15 '18 by Stéphane Chazelas