Reputation
403
Top tag
Next privilege 500 Rep.
Access review queues
Badges
8 19
Newest
 Tenacious
Impact
~51k people reached

Apr
16
answered Copy unix mail (received by sendmail) to a linux directory (individually)
Apr
16
comment Copy unix mail (received by sendmail) to a linux directory (individually)
The dollar sign there is wrong, and the lock file (second colon after :0c) is superfluous. Notice the difference between the variable $HOME and the literal, absolute path /home/username (which the value of $HOME` could typically be).
Apr
13
comment Mouse disappear in VirtualBox
Even just disabling it with (right ctrl)+I and then clicking in the guest window and accepting the "enable again?" dialog is sufficient.
Mar
30
revised Bash command for replacing all non-printable characters?
Also less
Mar
30
answered Bash command for replacing all non-printable characters?
Mar
30
comment bash script doesn't work unless bad command given
A typical symptom of "freezing" in a shell script is that a command is reading standard input, and you aren't typing anything. Obvious cases like grep foo when you meant grep foo file are easy to spot; slightly harder cases are grep foo $file where the variable file is empty can be quite challenging, especially if they do not reproduce always. (A useful practice for other reasons, too, would be to properly quote "$file"; then you get an error message when the argument to grep doesn't just completely disappear.)
Mar
30
comment bash script doesn't work unless bad command given
Your script is long and seems to have some external dependencies which are not completely clear to me. You are much more likely to receive help if you can reduce your problem to a minimal, verifiable, complete example and post it here in toto.
Mar
30
comment bash script doesn't work unless bad command given
While this is good debugging advice, it actually does not appear to address the actual question posted by the OP.
Mar
30
comment bash script doesn't work unless bad command given
Linking to the code is not accepted practice on SuperUser. Links rot; visitors should not have to click through to see what the question is about.
Mar
30
comment Append text to lines between two patterns every time they appear in a file
You are parsing it wrong. The general syntax is address followed by command. The address in this case is a range from <code> (quoted with slashes) to </code> (quoted with percent signs, with a backslash in front to change the quote delimiter) and the command is s:$:<br/>: which replaces $ (which is a placeholder which matches at end of line) with <br/>, using colons as regex delimiters. The real beef here is changing the end of the range regex so that it correctly matches </code> literally. The rest of my changes are sugaring to avoid having to use so many backslashes.
Mar
28
revised What are PATH and other environment variables, and how can I set or use them?
Reinstate edit; "export var=value" is not portable on U*x, and there's csh too
Mar
28
comment What are PATH and other environment variables, and how can I set or use them?
@G-Man I can now -- thanks for asking (-: Edit suggestion submitted.
Mar
28
suggested approved edit on What are PATH and other environment variables, and how can I set or use them?
Mar
28
revised What are PATH and other environment variables, and how can I set or use them?
Revert my recently accepted edit; needs further investigation (see comments).
Mar
28
suggested approved edit on What are PATH and other environment variables, and how can I set or use them?
Mar
27
comment get the IP address of USB device in Linux
If the manufacturer didn't see fit to transmit this information over USB, it is unlikely that there is a documented and reliable way to obtain it. Including the make and model of the printer would do wonders for making your question answerable even in theory.
Mar
27
comment How do I kill a process in Linux without using kill?
Perhaps not the sought answer, but pretty straight thinking.
Mar
27
comment How do I kill a process in Linux without using kill?
This has the distinct disadvantage of potentially killing a large number of unrelated processes. If you do sleep & sleep & sleep then killall sleep will kill all three, not just the third (and indeed, there is no way to single out one of the jobs).
Mar
27
revised What are PATH and other environment variables, and how can I set or use them?
On Linux, "export VAR=value" is not POSIX portable
Mar
26
revised Mount sysv filesystem under Linux
Formatting