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 94345

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.

4
votes
This is the fastest way to do what you are asking: #!/bin/bash echo "The sum of $1 + 10 is $(($1 + 10))." Output: creme@fraiche:~/$ ./script.sh 50 The sum of 50 + 10 is 60. …
answered Dec 12 '14 by cremefraiche
0
votes
Run ps -auxf to see which shells the background processes are children of.
answered May 11 '15 by cremefraiche
0
votes
#!/bin/bash tput setb 3 # if you set these inside the loop, you won't have to mess with color as much later on. tput clear function main_menu # this can be done a better way. slightly … color to red. esac done } I offer a similar and functional way to do this (with some other colors as well): #!/bin/bash tput clear main_menu() { until [ option = 4 ]; do tput setb 2 tput setf 5 …
answered Feb 23 '15 by cremefraiche
-1
votes
@jordanm and @Gilles pointed out my other answer was non-functional because of the expansion I was attempting within the alias. I put some thought into this answer, and verified it works as expected. …
answered Mar 1 '15 by cremefraiche
5
votes
To improve, use killall, and also combine the commands: ps -aux | grep script_name killall script_name inotifywait Or do everything in one line: killall `ps -aux | grep script_name | grep -v grep …
answered Dec 13 '14 by cremefraiche