Reputation
Next tag badge:
98/100 score
37/20 answers
Badges
19 150 296
Newest
 Good Answer
Impact
~4.7m people reached

Jun
10
revised How to print all lines after a match up to the end of the file?
added 109 characters in body
Jun
10
revised Is `--reflink=auto` safe to set as default for cp?
added 840 characters in body
Jun
10
answered Is `--reflink=auto` safe to set as default for cp?
Jun
10
revised Why is expect's interact command not working?
added 671 characters in body
Jun
9
comment How can I tell whether my system is Unix or Linux?
Yes, initially uname didn't take any option. case `uname` in... is a common idiom.
Jun
9
comment How can I tell whether my system is Unix or Linux?
Or just uname alone. uname is for Unix name.
Jun
9
comment IP address alias? E.g. map 203.0.113.37 to 127.0.0.1?
Actually, if you configure your browser to HTTP-proxy via localhost:8080, it would probably work. It would issue some GET http://203.0.113.37/... HTTP/1.1... to the remote web server which it should treat properly.
Jun
9
comment IP address alias? E.g. map 203.0.113.37 to 127.0.0.1?
That would have to be done via some LD_PRELOAD wrapper, DNAT at the firewall level (don't know about OS/X), or some other form of proxying (HTTP proxy or SOCKS proxy doing the translation on the fly).
Jun
9
comment IP address alias? E.g. map 203.0.113.37 to 127.0.0.1?
use ssh -D 1080 instead of port forwarding and configure your browser to use a SOCKS proxy via localhost:1080 (all browser traffic will be routed via that ssh SOCKS tunnel).
Jun
9
revised Find file which name contains given substrings simultaneously
added 186 characters in body
Jun
9
comment Why doesn't grep ignore binary files by default?
In that case, you'd rather use grep -l function_name /lib/lib* or nm -Do /lib/lib* | grep function_name or ldconfig -p | grep -o '/.*/lib.*' | xargs nm -Do | grep function_name though.
Jun
9
answered Find file which name contains given substrings simultaneously
Jun
9
revised Simultaneously check for empty output and successful exit status
While we're at pointing out best-practice, all upper-case should be reserved for environment variables (or variables to be visible throughout the script)
Jun
9
revised Issue an error when using empty shell variables
added 155 characters in body
Jun
9
revised Escape sequences passed as args to gawk not interpreted
fix brokeb printf|getline code.
Jun
8
revised find searching in parent directories instead of subdirectories
missing colon
Jun
8
comment find searching in parent directories instead of subdirectories
That will expand all of them. You may want: (../)#.git(/Y1:a:h) to stop at the first found one (with a recent version of zsh)
Jun
8
revised Escape sequences passed as args to gawk not interpreted
getting there... Remove problems with sep starting with -.
Jun
8
comment get original creation date of html file
For static HTML pages backed by files, the Last-Modified header in the HTTP response usually reflects the last modification time.
Jun
8
comment Escape sequences passed as args to gawk not interpreted
@cdosborn, well no, %s doesn't do any expansion. It's %b that does echo-like expansion. Also note that %b or echo expansion is different from the one done by awk (or the format argument of printf) for octal sequences: you need \011, \11 won't do.