955 reputation
11023
bio website
location
age
visits member for 3 years, 2 months
seen Jul 21 at 1:19

Aug
17
awarded  Popular Question
Jul
24
awarded  Popular Question
Jul
17
awarded  Notable Question
Jul
16
answered The reverse of `tree` - reconstruct file and directory structure from text file contents?
Jul
16
comment Is there a web based converter between rwx and the octal version?
Many thanks for that, @nico - here is the same code converted as a perl one-liner, and used in bash: echo 'rwxrwxrw-' | perl -ne 'BEGIN{sub conv{ chomp(my $ins=shift); my $k=0; for(my $i=0;$i<=8;$i++) { my $tmps = ( substr($ins, $i, 1) =~ /[rwx]/ ); $k+= ( $tmps*(2**(8-$i)) ); }; if ($k) { sprintf(" %0o ", $k); } else { "??" ; }; }; } print(conv($_)."\n");' would print "776". Cheers!
Jul
7
awarded  Popular Question
Jul
4
comment How to prepend a license header recursively for all .h and .cpp files in a directory
Related (has some Python code examples): language agnostic - Tool for adding license headers to source files? - Stack Overflow
Jul
4
comment The reverse of `tree` - reconstruct file and directory structure from text file contents?
Thanks for that @sim - confirms at least there isn't such tool already existing; cheers!
Jul
4
asked The reverse of `tree` - reconstruct file and directory structure from text file contents?
Jul
2
awarded  Curious
Jul
1
comment How to install latest catfish in ubuntu 10.04
python3-gobject has become python3-gi in newer ubuntus; the linked python-gobject refers solely to python2.6 (or 2.7), as it was on Lucid.
Jun
23
answered Inserting the command line text before output in stdout (for pipe / redirection)
Jun
23
comment Inserting the command line text before output in stdout (for pipe / redirection)
Thanks for that @mikeserv - the other answer has also a note about a shorter usage on command line, so I accepted that one. Cheers!
Jun
23
comment Inserting the command line text before output in stdout (for pipe / redirection)
Many thanks @terdon - I'll be accepting this, as it looks like it minimizes the amount of typing; I didn't need to differentiate between redirection and piping, so it looks good. Cheers!
Jun
23
accepted Inserting the command line text before output in stdout (for pipe / redirection)
Jun
23
asked Inserting the command line text before output in stdout (for pipe / redirection)
Jun
23
comment Tools to inspect local network, and find local IP address of device?
Thanks for the comment, @tink - I forgot to mention, that while local networking is in order, usually I mostly want to look at the cable modem page when I lose the Internet :) So it would be nice with a LAN-based only solution. Internet is back for me now, so I tried your command; but for some reason, the traceroute command gives me "all stars": ` 1 * * *, 2 * * *` up to 30 * * *. Cheers!
Jun
23
asked Tools to inspect local network, and find local IP address of device?
Jun
12
revised Achieving hexdump-like format, that includes binary strings, on the command line?
added clarification
Jun
12
revised Achieving hexdump-like format, that includes binary strings, on the command line?
added term for search