6,152 reputation
1722
bio website
location Seattle, WA
age
visits member for 2 years, 3 months
seen 2 hours ago

I am a computer programmer. Knowledge representation and algorithmic complexity are my main interests.


Mar
4
answered Debian dhcpd “No subnet declaration for eth0”
Mar
4
comment wicd - no connection after boot, have to restart manually?
How does rc.sysinit (or whatever) use those clock_* variables?
Mar
4
answered Is it possible to define where the .bash_profile is located on the bash command line?
Mar
4
answered wicd - no connection after boot, have to restart manually?
Mar
3
comment Recovering ext4 superblocks
I can't make myself believe that you were unlucky enough to have all copies of the superblock wiped. So there must be something wrong with the partition table, which in turn is throwing off the logical block offsets in the filesystem causing fsck to not be able to find the alternate superblocks.
Mar
2
answered How does load average work with modern CPU's?
Feb
29
answered How to split the output and store it in an array?
Feb
28
comment What characters do I need to escape when using sed in a sh script?
Wow, interesting. + isn't special for sed under Mac OS X. But it is special for sed under Linux. My head really hurts now.
Feb
28
comment What characters do I need to escape when using sed in a sh script?
For traditional Unix commands, there are basic regular expressions and extended regular expressions. Details. sed uses basic regular expressions, so the backslashes are needed for group syntax. Perl and Python went beyond even extended regular expressions. While I was poking around I found an extremely informative chart that illustrates what a confusing bramble we conjure up when we glibly say "regular expression."
Feb
28
comment What characters do I need to escape when using sed in a sh script?
The shell isn't touching the parentheses. You need the backslases because sed needs to see them. sed 's/(127\.0\.1\.1)/IP \1/' fails because sed needs to see \( and \) for group syntax, not ( and ).
Feb
28
answered What characters do I need to escape when using sed in a sh script?
Feb
28
answered Tar overwrites read only files
Feb
27
answered linux launch script /etc/init with a specific user
Feb
27
answered Shell script to check server state
Feb
27
answered Is S25mdadm start script priority correct?
Feb
27
comment history list in bash always truncated to 5000 lines at new login
Show us how you setup your prompt in your bash init file.
Feb
25
comment Split a file by line and have control over resulting files extension
The Unix philosophy is to provide you with a set of simple tools that you then combine to do a job. The "conciseness of the bash script" was not a stated requirement in your question.
Feb
25
answered Split a file by line and have control over resulting files extension
Feb
24
answered Removing all spaces, tabs, newlines, etc from a variable?
Feb
24
revised Where to find the source file of function pause(void) and sigsuspend(set)
added 580 characters in body