Gordon Davisson's user avatar
Gordon Davisson's user avatar
Gordon Davisson's user avatar
Gordon Davisson
  • Member for 12 years, 11 months
  • Last seen this week
62 votes
Accepted

How may I concisely assign different values to a variable, depending on another variable?

42 votes

Is there a terminal command to determine if ISP blocks port 25 without actually setting up email server?

20 votes

What is the difference between "echo $PATH" and /etc/paths?

16 votes

A bash script does not go through all sleep commands

15 votes

How to pop the last positional argument of a bash function or script?

11 votes
Accepted

if with regex in bash code

10 votes
Accepted

Temporarily unset bash option -x

8 votes
Accepted

Does zsh respect the shebang bin/sh so dash can be used?

7 votes

How to prefix any output in a bash script?

7 votes
Accepted

How can I add "find exec" command as a function to bashrc?

7 votes

Bash Script Function Return True-False

6 votes
Accepted

What is Darwin's 'private' directory for?

6 votes
Accepted

bash_profile stops after file call

6 votes
Accepted

Quoting / escaping / expansion issue in "command in a variable"

6 votes

does netstat established mean that someone is ssh'd into my machine

6 votes
Accepted

sed fails to replace a string with \ character

5 votes
Accepted

How to ignore the error from mv: cannot move ‘XXXXXX to a sub directory of itself

5 votes
Accepted

Silent option for read gets ignored?

5 votes
Accepted

var=$[3 * 2] seem conflict with intuitive perception

5 votes
Accepted

BASH variable name containing number issue

5 votes
Accepted

How to safely escape a variable string (user input) in bash?

5 votes
Accepted

the command find not working with -name option in sh file

5 votes

Bash option to make command substitution preserve trailing newlines

5 votes
Accepted

Testing default IFS against null IFS

4 votes
Accepted

Bash script generating multiple log files. I want it to generate only one log file

4 votes
Accepted

How to append arguments in a ZSH loop and then pass them to a command?

4 votes
Accepted

How to read a file with two columns into a script so that each line read as two variables

4 votes
Accepted

How to evaluate concatenated string involving math in bash script

4 votes

Execute a command per a given number of system boots, then it's automatically removed

4 votes
Accepted

Does sudo only apply to a simple command?