Reputation
2,088
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
3 19 33
Impact
~100k people reached

Apr
18
awarded  Popular Question
Apr
16
awarded  Good Question
Apr
15
awarded  Notable Question
Apr
14
comment Standard/canonical way to test whether foregoing pipeline produced output?
@Gilles: that was a mistake on my part; empty lines should be considered output. (In an earlier version of this post I wrote grep -q '', which may have been better.)
Apr
13
revised Standard/canonical way to test whether foregoing pipeline produced output?
deleted 190 characters in body
Apr
13
accepted Standard/canonical way to test whether foregoing pipeline produced output?
Apr
13
comment Standard/canonical way to test whether foregoing pipeline produced output?
@JeffSchaller: correct.
Apr
13
comment Standard/canonical way to test whether foregoing pipeline produced output?
@muru (cont'd) ...or if no one is looking, but for code that will go in a script, I avoid hacks as much as possible, if I want keep the script easy-to-understand by others. YMMV, it's all a matter of opinion.
Apr
13
comment Standard/canonical way to test whether foregoing pipeline produced output?
@muru: hackiness, of course, is in the eye of the beholder, but in my book at least, any use of a tool for a purpose entirely different from what it was intended for, especially when the tool in question is a powerful one, and the purpose it's being used is a trivial one, qualifies as "hacky". And yes, a ton of stuff would qualify as "hacky" by that definition, and a lot of other stuff many people would call hacky does not meet this definition... Nothing wrong with a hack, if that's all one can do...
Apr
13
revised Standard/canonical way to test whether foregoing pipeline produced output?
added 7 characters in body
Apr
13
revised Standard/canonical way to test whether foregoing pipeline produced output?
added 7 characters in body
Apr
13
asked Standard/canonical way to test whether foregoing pipeline produced output?
Apr
11
awarded  Popular Question
Apr
11
awarded  Nice Question
Apr
10
accepted Is there a convenient way to classify files as “binary” or “text”?
Apr
10
comment Is there a convenient way to classify files as “binary” or “text”?
@Bratchley: some versions of file will print, e.g. shell script, for some files I would like classified as "text". Is there a way to get file to print just text or binary?
Apr
10
asked Is there a convenient way to classify files as “binary” or “text”?
Apr
8
comment System disregards Daylight Saving Time
@Gilles: see my update (sorry for the delay).
Apr
8
revised System disregards Daylight Saving Time
added 2821 characters in body
Apr
7
asked System disregards Daylight Saving Time