Reputation
2,179
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
5 17
Newest
 Nice Answer
Impact
~35k people reached

13h
comment what if I need to put a “” inside a “” in bash shell?
Triple quotes just reduce to a single quote; the first two or last two (depending on it starts out of or in a double-quoted string) simply reduce to an empty string.
13h
comment what if I need to put a “” inside a “” in bash shell?
SHELL contains the name of your default shell, not necessarily the shell you are running.
13h
comment Why does [A-Z] match lowercase letters in bash?
What does locale output? I cannot reproduce this (touch foo; echo [A-Z]* outputs the literal pattern, not "foo", in an otherwise empty directory).
Aug
28
comment What does 'exec {fd}</dev/watchdog' do in Bash
It's also available in ksh and zsh. I couldn't tell you the minimum versions necessary.
Aug
28
awarded  Nice Answer
Aug
28
comment What does 'exec {fd}</dev/watchdog' do in Bash
See the man page, 2nd paragraph of the section REDIRECTIONS. It doesn't really jump out at you, since they don't give an explicit example.
Aug
28
answered What does 'exec {fd}</dev/watchdog' do in Bash
Aug
28
answered How can I send multiple options to one variable
Aug
28
revised How can i replace a specific string within a line inside a text file
Format code and improve readability
Aug
28
answered Different behaviour of eval “ command \”$@\“ ”, “$@”, and “$(echo $@)” when used as arguments
Aug
28
suggested approved edit on How can i replace a specific string within a line inside a text file
Aug
19
awarded  Yearling
Aug
13
awarded  Custodian
Aug
13
reviewed Approve Interactively remove files in loop with standard input redirection
Aug
13
revised Interactively remove files in loop with standard input redirection
added 241 characters in body
Aug
13
revised Ask for a password in POSIX-compliant shell?
Provide a link to where `stty` is defined in the POSIX standard.
Aug
13
comment Byobu - New window with same ssh session?
You can configure ssh to use connection sharing as well; see the -M option and ControlMaster in man 5 ssh_config.
Aug
13
suggested approved edit on Ask for a password in POSIX-compliant shell?
Aug
13
answered Interactively remove files in loop with standard input redirection
Aug
13
comment Interactively remove files in loop with standard input redirection
In the first example, the result of the command substitution undergoes word-splitting. In the second example, the quoted parameter expansion does not. Either way, you shouldn't be storing file names in a flat string parameter; it won't work if any of the file names contain newlines or other non-whitespace characters interpreted by the shell.