176 reputation
3
bio website
location
age
visits member for 3 years, 1 month
seen Oct 24 at 12:33

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.