Reputation
22,908
Next tag badge:
910/400 score
77/80 answers
Badges
3 52 82
Newest
 Nice Answer
Impact
~1.0m people reached

Jul
31
revised Why does `exec 2>&1` fail in this bourne shell script?
added 336 characters in body; deleted 20 characters in body
Jul
31
answered Why does `exec 2>&1` fail in this bourne shell script?
Jul
31
comment mutt: rendering html emails using w3m
AFAIK, Mutt doesn't have the ability to render HTML. I'm not sure where the asterisks you are seeing come from, but I don't think it's related to the color setting of the built-in pager.
Jul
31
comment mutt: rendering html emails using w3m
The in-mutt color settings are for the built-in pager only - mutt has no control over w3m colors. You'll have to find a way to configure w3m to display colors the way you want in addition to mutt.
Jul
30
comment Using '.' to execute files in bash
Just as test.sh is not the same as ./test.sh (the first invokes a PATH search), so are . test.sh and . ./test.sh different in the same way (the former invokes a PATH search). Many shells seem to implicitly include . at the end of PATH when doing a . path search, but this behavior is not standard. Thus, it is more accurate to compare test.sh vs . test.sh and ./test.sh vs . ./test.sh.
Jul
28
comment Good style/practices for separators in file (or directory) names
For reference: the POSIX Portable Filename character set.
Jul
27
comment Matching values within columns
Can you what you mean by the dollar signs better? Usually the best way to explain such things is: (1) illustrative sample input (2) sample command (3) expected output. You've got 1 and 3 but are a bit unclear on (2).
Jul
27
comment How do you kick a benign user off your system?
Normally, I'd say don't encourage people to abuse kill -9, and start with gentler signals instead, but I suppose in this context it doesn't matter so much. I am just leaving a comment in case people miss the joke.
Jul
27
comment How do you kick a benign user off your system?
Changed question to reflect assumptions given the accepted answer. In the context of a security breach, the only way to kick a malicious user off your system is to be much smarter than that user. A clever user is not going to let themselves show up in utmp or get found by something as trivial as who(1) or w(1). The only foolproof way to get rid of any potential rootkits that may be installed is to completely wipe and reinstall the system.
Jul
27
awarded  Excavator
Jul
27
revised How do you kick a benign user off your system?
edited title; edited tags
Jul
27
comment awk function with a number parameter for the column you want to print
For a completely different approach, try pgrep -f mysql (assuming pgrep is available).
Jul
27
comment Fastest way of finding files which contain exclusively some text
grep only does line-wise comparison. As Jander has noted above, this may result in false positives since any file containing the search string will match. Gilles' approach is much more sound.
Jul
27
revised How to change the volume name of a FAT32 filesystem?
with less whit
Jul
27
awarded  Good Answer
Jul
26
comment Use a shell variable to execute a comand
Long command pipelines in shell variables should make anyone nervous. What are you trying to do? I recommend taking some time to read and digest BashFAQ 50 before taking this approach any further.
Jul
26
revised Replace whole line in a file from command-line
added 131 characters in body
Jul
26
revised Replace whole line in a file from command-line
edited tags
Jul
26
comment Fastest way of finding files which contain exclusively some text
I'd go look at the documentation for the program you are running first to make sure it does indeed do what you think it does before going on a possible wild goose chase for a magic number across /var, /run, /tmp, etc.
Jul
26
comment Fastest way of finding files which contain exclusively some text
grep matches and returns lines, not files. A recursive grep will return any file containing a line that is an exact match. I don't think that was what the question asked.