Reputation
2,701
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
5 21
Impact
~33k people reached

7h
comment Recording shell output for interactive commands
Video recordings don't suffer from these problems.
9h
answered Remove formatting from copy/paste buffer
10h
comment Does Linux automatically clean up abstract domain sockets?
PID files are a very bad practice.
1d
comment How to download human DNA fasta file in unix
By reading from a file. :)
1d
awarded  Popular Question
Jul
28
answered Is there a way to colorize output per stream from a program
Jul
28
comment Is it possible, with `sed` or otherwise, to apply a regex transform to an input stream that may not contain newlines?
@starfry My sed says it's gnu, version 4.2.2 as well and the example does work on my Linux Mint 17. It continues to work even if I add the --posix flag to sed.
Jul
28
revised Bash: Rename file with prefix as suffix
added 2 characters in body
Jul
28
answered Monitor processes trying to access non-existent file or directory
Jul
27
comment Monitor processes trying to access non-existent file or directory
It would have some overhead, the slowdown shouldn't be that big, though. It should be proportional to the number of syscall your application makes. You can limit by limiting yourself to a subset of syscalls with "-e trace=..." switch. Another alternative would be to emulate what tup does in regards to tracing IO, which is set up a fuse file system that records the operations. Strace should be easier to set up.
Jul
27
comment Monitor processes trying to access non-existent file or directory
------------------strace
Jul
27
revised Bash: Rename file with prefix as suffix
added 1 character in body
Jul
27
comment Is it possible, with `sed` or otherwise, to apply a regex transform to an input stream that may not contain newlines?
Why does source need to send newlines at all? echo -n "fooxxxxxbarxxxxx" |sed -e 's:xxxxx:yyyyy:g' works just fine and no newlines were outputted.
Jul
27
answered Bash: Rename file with prefix as suffix
Jul
27
comment Monitor if a process has terminated in C
killing a child_pid with any signal is perfectly race-condition safe as long as you haven't reaped (=waited on) the child yet, but killing with zero isn't a good way to determine if a process is dead or not. It's perfectly acceptable to kill your zombie child repeatedly, and you won't be getting any ESRCH errors until you wait, at which moment the race conditions come.
Jul
27
comment Modify multiple files in different folders with one command?
That was a typo. It should have been | rather than >.
Jul
27
revised Modify multiple files in different folders with one command?
edited body
Jul
27
revised Modify multiple files in different folders with one command?
rolled back to a previous revision
Jul
27
revised Modify multiple files in different folders with one command?
deleted 36 characters in body
Jul
26
revised Modify multiple files in different folders with one command?
added 170 characters in body