333 reputation
15
bio website
location
age
visits member for 3 years
seen Nov 12 at 3:31

Mar
13
accepted GNU Screen: Strange TERMCAP when using -d -m
Mar
13
answered GNU Screen: Strange TERMCAP when using -d -m
Mar
13
comment GNU Screen: Strange TERMCAP when using -d -m
@frostschutz: No such option on FreeBSD's ls. I doubt it would make a difference though. I have LSCOLORS set up.
Mar
10
revised GNU Screen: Strange TERMCAP when using -d -m
added 40 characters in body
Mar
10
asked GNU Screen: Strange TERMCAP when using -d -m
Feb
27
answered Is shebang always the same as the interpreter's installation directory?
Oct
31
awarded  Yearling
Oct
10
comment Why do 'nohup' and 'disown' not work on SoX (invoked as 'play')
Cool! I am curious - why are there two &? I'm unfamiliar with that syntax.
Oct
1
answered Average rows with same first column
Jul
6
accepted Why do 'nohup' and 'disown' not work on SoX (invoked as 'play')
Jul
6
comment Why do 'nohup' and 'disown' not work on SoX (invoked as 'play')
Do you know why it successfully runs in 'bg' mode, while the controlling terminal still exists? Is stdin still active in that mode, just nothing sent to it?
May
31
comment Why do 'nohup' and 'disown' not work on SoX (invoked as 'play')
@JiriXichtkniha: Thanks - I already run xmms2, so it's no problem. I am more just curious why this fails. I want to know what is special about SoX that causes this odd behavior.
May
31
asked Why do 'nohup' and 'disown' not work on SoX (invoked as 'play')
Feb
22
comment How to add a newline to the end of a file?
Regarding the manpage: The quote you are referring to is under the "Addresses" section. Putting it inside /regex/ gives it a different meaning. The FreeBSD manpages are a little more informative, I think: freebsd.org/cgi/man.cgi?query=sed
Feb
22
comment How to add a newline to the end of a file?
There are two different meanings of $. Inside a regex, such as with the form /<regex>/, it has the usual "match end of line" meaning. Otherwise, used as an address, sed gives it the special "last line in file" meaning. The code works because sed by default appends a newline to its output if it is not already there. The code "$a\" just says "match the last line of the file, and add nothing to it." But implicitly, sed adds the newline to every line it processes (such as this $ line) if it is not already there.
Feb
17
comment How to add a newline to the end of a file?
A better version, which seems like what the original author was trying for, would be sed -i -e '$a\' file, which really does match only the last line, and is possibly more efficient.
Feb
17
comment How to add a newline to the end of a file?
While this does work, please note that the documentation at your link is misleading. It says '$' denotes the end of file, but in this case $ is matching the end of line (for every line), and is taking advantage of the fact that sed will add the newline if its not there. Actually, removing the . from the regex works fine, too.
Dec
13
answered How to check if a shell is login/interactive/batch
Nov
10
answered Command line linux alternative for Windirstat/SpaceMonger?
Nov
10
awarded  Supporter