7,172 reputation
1827
bio website
location Seattle, WA
age
visits member for 2 years, 11 months
seen yesterday

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


Mar
8
answered Add consecutive numbers succintly and elegantly to index lines
Mar
8
comment Finding text between two specific characters or strings
@Peter Thanks for catching that. I'd have sworn I tested the sed example. :( I've changed it to your version. Regarding \012: it is needed otherwise tr will eat the newlines.
Mar
8
revised Finding text between two specific characters or strings
fixed sed example, which actually did not work.
Mar
7
comment How to make changes to /etc/profile take effect
What I would do is put an echo $GRAILS_HOME at the end of /etc/profile so you can both see what the variable value is at that point and verify that /etc/profile is actually being sourced when you login.
Mar
7
answered How to make changes to /etc/profile take effect
Mar
7
answered 802.3ad on FreeBSD and Linux using crossover cables?
Mar
7
comment How to make changes to /etc/profile take effect
What shell do you use?
Mar
7
answered Finding text between two specific characters or strings
Mar
7
answered Why does awk do full buffering when reading from a pipe
Mar
7
answered Find files with same name but different content?
Mar
7
comment Find files with same name but different content?
Suppose there are three files with the same name and two of the three are identical?
Mar
7
comment Storing commands in files
Comment out lines one at a time until the error message goes away. That's your problem line.
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?