585 reputation
313
bio website
location
age
visits member for 2 years
seen 12 hours ago

Sep
14
awarded  Yearling
Aug
18
reviewed No Action Needed Disable processor speed changes on AC vs battery
Aug
18
reviewed No Action Needed Can't boot slackware after installation. Liloconfig not found
Aug
16
comment Reverse grepping
@Patrick, et. al. So the “obvious” compromise is to do grep (pattern) (input_file) > (temp_file); tac (temp_file) > (output_file); rm (temp_file), right? Note that, if the user wants to know line numbers of matches (by specifying the -n option), this will report correct line numbers in the original input file, whereas tac (input_file) | grep -n (pattern) will report, for example, the third-to-last line in the file as line 3. (Of course, that might be what the OP wants.)
Aug
16
comment Why is `tac file | grep foo' (piping) faster than `grep foo < <(tac file)' (process substitution)?
No one suggested xargs because xargs is not applicable to this problem.
Aug
15
comment There are stopped jobs (on bash exit)
I would quibble with your second sentence. It should say, “Because the job is stopped, it cannot take any action – file I/O, network I/O, terminal I/O, or any other processing.”
Aug
11
reviewed No Action Needed Insert new line after non matching pattern
Aug
11
reviewed No Action Needed nVidia fail after update
Aug
11
reviewed No Action Needed Send SIGINT to child process of shell, simulating CTRL+C (Linux)
Aug
8
reviewed Reviewed Getting expr: syntax error on index
Aug
8
comment find words with all vowels in order from a file
@terdon: My point, such as it is, is that some of us break out in hives when we see cat (file) |, and some people use it instinctively, so I was offering the OP a migration path.
Aug
8
comment find words with all vowels in order from a file
@terdon: Simply for "readability". People tend to think in terms of "take this input and do this processing on it", and so it can be hard to perceive the meaning of a command that puts the input filename somewhere around column 83.
Aug
8
comment find words with all vowels in order from a file
Following up on the second part of @terdon's comment: the traditional way of running a grep would be grep (option(s)) (pattern(s)) (input_file(s)). If you prefer to see the input up front, and it's a single file, you can say < mywords grep (option(s)) (pattern(s)), which makes the input easy to see while avoiding the "useless use of cat".
Aug
8
comment How does Linux choose which application to open a file?
@richard: I'm not sure what you mean by "there is meta information on the file system". The appropriate x bit needs to be set on a script before the shebang is effective; this is not a difference.
Aug
7
revised Getting expr: syntax error on index
Fixed typo.
Aug
7
answered Getting expr: syntax error on index
Aug
7
reviewed No Action Needed Remove icons in gnome application menu
Aug
7
reviewed Reviewed How to make awesomewm textclock reflect timezone change?
Aug
7
reviewed Reviewed Is there some sort of PDF to text -converter?
Aug
6
reviewed No Action Needed Starting up and keeping up a process