6,682 reputation
1723
bio website
location Seattle, WA
age
visits member for 2 years, 7 months
seen 1 hour ago

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


Mar
11
revised Opening a file with space from Ruby
edited tags
Mar
11
comment Opening a file with space from Ruby
For me, typing emacs "foo bar" RETURN, typing some garbage followed by C-x C-s creates a file called foo bar. emacs foo\ bar RETURN also works. My shell is bash. If the shell or emacs is behaving differently for you, then there's something in your environment that is causing it.
Mar
9
awarded  Nice Answer
Mar
8
comment Add consecutive numbers succintly and elegantly to index lines
Wow. I've been using *IX since the mid 1980's and I'd never used or heard of nl.
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