Reputation
Next tag badge:
1001/1000 score
194/200 answers
Badges
21 203 382
Newest
 Good Answer
Impact
~7.2m people reached

Feb
2
answered From bash, spawn two processes and exit both if either sibling exits
Feb
2
comment From bash, spawn two processes and exit both if either sibling exits
@mikeserv You might be able to make it work with bash with set -m.
Feb
2
comment From bash, spawn two processes and exit both if either sibling exits
@mikeserv, just that bash (and most other shells but zsh) don't support traping SIGCHLD
Feb
2
comment From bash, spawn two processes and exit both if either sibling exits
@mikeserv, that would work with zsh, not bash.
Feb
2
awarded  Good Answer
Feb
2
reviewed Leave Open Using if and find together
Feb
2
comment Implementing a command that executes the given command in a certain path and returns to the current path
@cuonglm, the chdir or C, perl, python, ruby, java, you name it.
Feb
2
comment Implementing a command that executes the given command in a certain path and returns to the current path
See Security implications of forgetting to quote a variable in bash/POSIX shells, Why does my shell script choke on whitespace or other special characters?, When is double-quoting necessary?, Expansion of a shell variable and effect of glob and split on it, Quoted vs unquoted string expansion...
Feb
2
comment Implementing a command that executes the given command in a certain path and returns to the current path
cd $prev_dir doesn't make sense. It should be at least cd "$prev_dir" or rather cd -P -- "$prev_dir".
Feb
2
answered Implementing a command that executes the given command in a certain path and returns to the current path
Feb
2
answered Find files using shell script
Feb
2
comment Find files using shell script
Note that -name "$num3" (-name $num3 doesn't make sense) is not to find files whose name is $num3, but files whose name matches the $num3 pattern.
Feb
2
revised How do I grep the lines based on '.' (dot)?
[.] would be a problem in zsh or ksh93 with FIGNORE.
Feb
2
answered Using if and find together
Feb
2
comment Renaming a file the moment it appears in a folder
Sounds like a job for incron
Feb
2
answered How to seperate executable calls as different functions in shell script?
Feb
2
revised Is it possible to save Linux virtual console content and scrollback in a file?
added 1640 characters in body
Feb
2
revised Is it possible to save Linux virtual console content and scrollback in a file?
added 380 characters in body
Feb
2
revised Associative Arrays in Shell Scripts
added 127 characters in body
Feb
2
comment Difference between “cat” and “cat <”
Note that ksh93 has cat builtin (not enabled by default unless you have /opt/ast/bin early in your $PATH though).