Reputation
707
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 23
Impact
~30k people reached

Jul
30
revised Passing parsed output of sed to find (in this direction)
deleted 7 characters in body
Jul
28
revised Using sed to extract text between 2 tags
added 47 characters in body
Jul
28
answered Using sed to extract text between 2 tags
Jul
24
revised Trying to do arithmetic in Perl rename tool (Debian)
added 20 characters in body
Jul
21
revised Facelifting XClock while using Xrender: A long and winding road
formatting tweak
Jul
21
accepted Facelifting XClock while using Xrender: A long and winding road
Jul
21
awarded  Popular Question
Jul
21
revised Error while installing wget and unzip
added 332 characters in body
Jul
21
answered Error while installing wget and unzip
Jul
21
comment Execute only if it is a bash function
Oh thanks, didn't know that. I'm not going to use it though; the latter variant you quoted will increase readability by at least 25 percent (IMHO), since the $@ will even be understood by bash programmers who only know the more basic syntax.
Jul
21
comment Execute only if it is a bash function
This is really supposed to work? for f do? Shouldn't that be for f in <something> do instead? I'm wonder if a certain boolean condition could actually turn this into an infinite loop...
Jul
18
comment PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'
What about extension=mysql.so in php.ini? Just checked a closely related RPM package (CentOS 7) and in that case, the module was actually found under /usr/lib64/php/modules/mysql.so! If that works, the packager should get a decent slap, because of breaking common file naming due to doing things his own way!
Jul
18
comment PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'
Looks like Fedora, but I'm not that sure...might as well be RHEL
Jul
16
comment How to pass shell variable to an awk search pattern?
@mikeserv Oh you're right, of course I was actually referring to the combined operator ~= where the tilde is followed by an = operator. Good catch of yours (as usual). :)
Jul
16
comment How to pass shell variable to an awk search pattern?
@glennjackman And if I may add this, this is not even an awk specialty, as some people may think...unless you insist on using a very ancient bash, the ~ operator will also work with the test shell command (aka [[ ]]). If more people knew about this, a lot of bash scripts would look way less messy, since the alternate method (i. e. pattern matching) will often make the expression harder to follow than a regular expression would...
Jun
27
comment Decoding URL encoding (percent encoding)
Great solution. And even shorter and smarter: ... | sed 's/+/ /g;s/%\(..\)/\\\\x\1/g'. The -e option can be omitted here in fact...
Jun
27
comment Decoding URL encoding (percent encoding)
awk: As this makes use of a library function, chr(), there is a high probability it will solely work on GNU awk (gawk). However, in this case there will be hardly any equivalent for POSIX awk, because the -n option (allowing non-decimal arguments) IS a GNU awk specialty.
Jun
25
comment How can I find broken symlinks
Yet another shorthand for those whose find command does not support xtype can be derived from this: find . type l -printf "%Y %p\n" | grep -w '^N'. As andy beat me to it with the same (basic) idea in his script, I was reluctant to write it as separate answer. :)
Jun
24
comment Any CLI to validate URL?
Even wget can do that to a certain extent (wish I could write an answer here, but the ever-present SE "cerberuses" have chosen to close this question). * Sigh * So here goes ... You may (mis)use wget -nv --spider <someURL> and evaluate its return code (echo $?). This is only for checking whether the link is valid (respectively the server still up) or not, though.
Jun
24
revised Decoding URL encoding (percent encoding)
cat UUOC nonsense removed. (Will people ever get rid of this for good?)