1,740 reputation
616
bio website
location Vancouver, Canada
age
visits member for 2 years, 5 months
seen 6 hours ago

Moderator pro tem for http://codereview.stackexchange.com


Aug
7
comment How to undo `set -x`?
In Bash, type help set.
Jul
12
comment What is the source of help?
Further evidence: strings /bin/bash | grep 'Change the current directory to DIR'
May
27
comment Difference between command `ls 2 >tmp >tmp` and command `ls > tmp`
ls >2 >tmp1 >tmp1 doesn't appear to be a valid command.
May
27
comment Difference between command `ls 2 >tmp >tmp` and command `ls > tmp`
You seem to be asking two separate questions here.
May
19
comment Converting Linux into a Router- Traffic from eth0:0 to eth0
I think you may be running a rogue DHCP server on eth0, and that could cause problems.
Apr
21
comment How to find out a process gets end?
Why do people answer questions in comments instead of writing answers?
Apr
11
comment Why isn't there any shell command to create files?
An illustration of the Unix tendency to generalize is the fact that the command to display the contents of a file is called cat. Why have a command to display one file, when you could make one command to concatenate multiple files to standard output?
Apr
5
comment Tell fs to free space from deleted files NOW
Superfluous use of cat to truncate. In Bourne shell, just > /proc/3446/fd/128 will do.
Jan
10
comment Why I can't escape spaces on a bash script?
Furthermore, if you double-quote everything consistently, you don't need the backslash before the space.
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
@HåkonHægland Amended, thanks!
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
Please clarify the question by posting what your desired output should look like.
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
I interpret the task be replacing empty fields (i.e. consecutive tabs or a tab at the end of the line) with 0.
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
I don't see how this solution should work at all. It just indiscriminately replaces tabs with zeros.
Dec
3
comment How to download all the e-mail messages from POP3 server to a single text file with mailx?
IMAP does support multiple folders. Use fetchmail --folder Sent (or fetchmail INBOX.Sent with some IMAP servers' folder layout).
Dec
2
comment How to download all the e-mail messages from POP3 server to a single text file with mailx?
POP3 has no concept of any folder other than Inbox. Your Sent and Deleted folders probably reside locally on the client.
Nov
26
comment How can I determine a file's conventional filename extension
grep | awk can usually be done using awk alone.
Nov
8
comment How can I find out where the firefox bin is?
While locate exists on OS X, the locatedb database is not built by default. Instead, users would probably prefer mdfind, since Spotlight indexing is enabled out-of-the-box.
Nov
8
comment How can I find out where the firefox bin is?
@JosephR. Technically true, but not useful. For one, type assumes that firefox is already in the $PATH, which it wouldn't be on OS X. The question is, where would you find it, which leads back to the original question. See my osx-relevant answer.
Nov
8
comment How can I find out where the firefox bin is?
Not really applicable to osx.
Nov
8
comment Simple Bash Script
It could be done, but this kind of problem requires too much manipulation to be solved comfortably using shell scripts, especially for a beginner. Try a programming language such as Python, Ruby, or Perl.