6,887 reputation
1724
bio website
location Seattle, WA
age
visits member for 2 years, 8 months
seen yesterday

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


Mar
6
comment Storing commands in files
You need to use end instead of End.
Mar
6
comment Storing commands in files
You're writing a tcsh-style script. Could it be that you're inadvertently trying to execute it with a Bourne type shell, e.g. bash or sh? That would explain the error message. Put #!/bin/tcsh at the top of the file to tell the system to use tcsh as the interpreter.
Mar
6
comment Why does SELinux allow me to read this file?
Please show the output of the sestatus command.
Mar
6
answered Storing commands in files
Mar
4
revised Debian dhcpd “No subnet declaration for eth0”
added 2 characters in body
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?