174 reputation
5
bio website
location
age
visits member for 3 years, 2 months
seen Dec 17 at 18:51

Dec
17
comment Get exit status of process that's piped to another
@camh: In that case correct answer should work all the way back to Bourne Shell!
Dec
16
awarded  Commentator
Dec
16
comment Get exit status of process that's piped to another
@camh: I did. I don't care. The question is not tagged bash, so the answer is incomplete.
Dec
15
awarded  Critic
Dec
15
comment Get exit status of process that's piped to another
The question is not tagged bash.
Dec
15
comment Get exit status of process that's piped to another
There is no $PIPESTATUS in POSIX. Downvoted.
Nov
24
comment Measuring RAM usage of a program
Important note: The "Maximum resident set size" only works since Linux 2.6.32.
Oct
2
comment Is there any UNIX variant on which a child process dies with its parent?
@Gilles: No, I was not, but looking at strace nohup in fact does ignore the signal before it execs the command.
Jun
3
comment Bash syntax error when “else” follows an empty “then” clause
While -exec is often useful, as is xargs, sometimes a shell loop is needed. In which case a while read name loop is the preferred option (in bash with GNU find you can use the -0 option for both; portably you have to give up on newline).
Sep
27
comment find command in linux
@chinmay: There is not. There are it's opposites, the -depth switch which limits search to given depth and -prune command which tells it not to recurse in given directory.
Jun
12
comment How can I use unix tools with Cyrillic text?
@ixtmixilix: I haven't used it myself. There are two parts to using unicode in your case: opening the file so that it returns correct unicode strings (check known codepoint with repr) and using locale-aware character class in the regexp (hm, python3 doc says \w is by default if the pattern is str (unicode in py3) and not bytes).
Jun
12
revised How can I use unix tools with Cyrillic text?
Mention posix regular expressions and pcre.
Jun
12
awarded  Editor
Jun
12
revised How can I use unix tools with Cyrillic text?
Added part about python
Jun
12
comment How can I use unix tools with Cyrillic text?
@Patrick: grep, at least the GNU one, is perfectly utf-8 aware. It just has different definition of \w, so you can't use that, but have to use the named classes.
Jun
12
answered How can I use unix tools with Cyrillic text?
Oct
7
awarded  Supporter
Oct
7
awarded  Teacher
Oct
7
answered xargs with stdin/stdout redirection
Oct
7
comment xargs with stdin/stdout redirection
YUCK*. Always assume find's result is: a) HUGE (enough that shell will refuse to expand it) and b) contains SPACES (there is unfortunately no way to deal with newlines, but those are not common, spaces are). If you had for i in A/*.dat, that would be another matter.