89,136 reputation
12101215
bio website
location European Union
age
visits member for 2 years, 1 month
seen 30 mins ago

11h
awarded  Good Answer
1d
revised When was the shellshock (CVE-2014-6271/7169) bug introduced, and what is the patch that fully fixes it?
deleted 82 characters in body
Oct
15
comment Empty a file without grep subsequently treating it like a binary file
Best would be to use tee -a. See there for details (tee -a is the equivalent of shells using >>).
Oct
15
revised sed lines after match and before next match
added 252 characters in body
Oct
15
answered sed lines after match and before next match
Oct
15
revised sed lines after match and before next match
added 24 characters in body
Oct
15
revised (SOLVED) How I get the current working directory with inverted slash?
fixed attribution, remove usage of the split+glob operator which is not needed here (and potentially harmful). Remove usage of echo.
Oct
14
revised Remove all files created before a certain date
added 185 characters in body
Oct
13
answered View physical location of a file/directory on a hard disk
Oct
13
revised How can I delete all lines in a file using vi?
edited body
Oct
13
comment How can I delete all lines in a file using vi?
gg is vim specific. It's 1G in traditional vi.
Oct
13
revised Why doesn't 'sudo bash && cd desktop' cd in to the desktop folder?
No need to run bash to interpret that simple command line. && to avoid running bash if you can't cd in the directory. exec as some sh implementations (including bash) don't save a process here and we don't need the sh to keep running here. No reason to use weak quotes here.
Oct
12
awarded  Nice Answer
Oct
12
comment Terminating SSH called from a script (SIGPIPE handling?)
ITYM (p=$BASHPID; ssh host remoteCommand | { localCommand || pkill -P "$p"; })
Oct
12
comment Terminating SSH called from a script (SIGPIPE handling?)
What system? ssh localhost 'cat /dev/zero' | false works for me. If the ssh client dies, so does the connection, so does sshd, so does the pipe cat writes to to sshd, so cat should get a SIGPIPE on the remote host as well. So it looks like the problem is with your ssh client not dying of the SIGPIPE.
Oct
12
comment When does the empty string denote the current directory?
find * -name '*.h' will find foo/.bar.h, but not .bar.h in the current directory.
Oct
12
comment When does the empty string denote the current directory?
That assumes GNU find. Or use %P to only strip the ./
Oct
12
revised When does the empty string denote the current directory?
better use the glob qualifier where available rather than change the behaviour of the shell globally.
Oct
12
comment When does the empty string denote the current directory?
An empty string in $PATH, $MANPATH, $LD_LIBRARY_PATH (and others but not necessarily all $*PATH ones) denotes the current directory. dir/ is mostly the same as dir/.
Oct
12
revised Representing/quoting NUL on the command line
deleted 1 character in body