Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
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 user 41754

Questions specific to GNU’s Bourne Again SHell, as opposed to other Bourne/POSIX shells. For questions about Unix shells in general, use the /shell tag instead.

2
votes
If your typing is not quick enough for the case then run kill -s SIGSTOP 1023 && kill -s SIGCONT 1023 from another shell, supposing 1023 as target PID. DISCLAIMER: As Ruslan probably knew, that sequence actually restarts the job so quickly bash does not notice it. …
answered Aug 5 '14 by uprego
2
votes
2answers
Can peoples combine arithmetic expansion and brace expansion? $ for i in {$((1 + 1))..5}; do echo $i; done; {2..5} $ echo "bash laughs at me" …
asked Aug 27 '14 by uprego
4
votes
It is needed to wipe the space before the equal glyph (the =) to get the environment variable set.
answered Oct 2 '13 by uprego
0
votes
You can tar czvf file.tar.gz $(ls | grep "201301\|201302\|201303\|201304" | grep -v "16\|17\|18\|19\|20\|21\|22\|23\|24\|25\|26\|27\|28\|29\|30\|31") from the base directory.
answered Dec 13 '13 by uprego
5
votes
1answer
IINM my system is failing when bashing for i in {0..10000000}; # Seven zeroes. do false; done # `bash` exited and its `tmux` pane/window was closed. or for i in $(seq 0 10000000 … ); # Seven zeroes. do false; done # `bash` exited and its `tmux` pane/window was closed. but not when for i in {0..1000000}; # Six zeroes. do false; done # Finished correctly. Can you please briefly explain the internals of this behavior and prompt a workaround for getting the task done? …
asked Aug 27 '14 by uprego