Reputation
143,557
Next tag badge:
1001/1000 score
194/200 answers
Badges
21 202 381
Newest
 Good Answer
Impact
~7.2m people reached

1d
comment Syntax error removing duplicate lines via awk '!x[$0]++' file
On Solaris, use nawk or /usr/xpg4/bin/awk. /bin/awk shouldn't be used, it's the one from the 70s. Generally on Solaris, you want to do PATH=$(getconf PATH):$PATH to have sane versions of the utilities.
2d
awarded  Good Answer
2d
comment Can't use !$ in script?
careful with SHELLOPTS, it will affect that bash that runs script.sh, but also all the other bash instances that script.sh may eventually run (like other bash scripts...).
2d
comment what is the correct form for “tex file.tex | dvips | ps2pdf”?
Try make file.pdf or pdftex file.tex
2d
comment How to get proof that Kernel Oops has happened?
crashing a program has nothing to do with a kernel oops. Please clarify. Your system crashed? a process crashed? By some signal? (SIGSEGV, SIGILL...?).
2d
comment For loop cannot distinguish * syntax
OS/X comes with zsh. You don't have to use bash there.
2d
revised Why do I end up with 4 invocations instead of 3 when using this find -execdir {} + (plus)?
typo
2d
comment Why is 'ls' suddenly surrounding items with spaces in single quotes?
Note that copy-pasting still doesn't work in xterm for files like this one created with touch $'Pa\u301draig' where xterm replaces the a\u301 with \ue1. screen or luit can also do some charset conversion which will break copy-pasting.
2d
revised ESC + { : What is it and where I can know more about it?
added 2 characters in body
2d
comment how to execute lines coming from a grep result?
Note that for source <(...), you need bash 4 or above. It didn't work with older versions (zsh was OK though).
2d
awarded  Enlightened
2d
comment getpriority returning different value on different hosts with same kernel version
It wasn't really about the umask, but about the pam_umask PAM module that can also set the niceness. See /etc/pam.conf or /etc/pam.d/*. Also what does ps -eHo nice,pid,args tell you? Which are the processes with 19 niceness?. How are those shells where you run that command started? Over ssh, in terminal emulators in a X11 session?
2d
revised bash variables in for loop range
added 3 characters in body
2d
revised ESC + { : What is it and where I can know more about it?
added 395 characters in body
2d
awarded  Nice Answer
2d
revised ESC + { : What is it and where I can know more about it?
added 395 characters in body
2d
revised ESC + { : What is it and where I can know more about it?
added 395 characters in body
2d
answered ESC + { : What is it and where I can know more about it?
Feb
5
revised Find files using shell script
added 22 characters in body
Feb
5
awarded  Nice Answer