Reputation
1,166
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 14
Newest
 Yearling
Impact
~11k people reached

  • 0 posts edited
  • 0 helpful flags
  • 228 votes cast
Apr
9
awarded  Yearling
Oct
23
revised xargs, records, and standard input
added 45 characters in body
Oct
23
answered xargs, records, and standard input
Oct
15
revised Is there a way to see if process listening on TCP port receives a message?
added 23 characters in body
Oct
15
revised Is there a way to see if process listening on TCP port receives a message?
deleted 2 characters in body
Oct
14
awarded  Enlightened
Oct
14
awarded  Nice Answer
Oct
14
answered Is there a way to see if process listening on TCP port receives a message?
Oct
7
comment combining find with other commands: when to use -exec and when to use pipe?
stackoverflow.com/questions/26234041/…
Oct
6
revised Comma separated words to next line in new file
added 251 characters in body
Oct
6
answered Comma separated words to next line in new file
Oct
6
answered How to escape single quotes correctly creating an alias
Oct
3
awarded  Autobiographer
Oct
3
answered Long start time of MC due to bash function
Oct
3
comment Long start time of MC due to bash function
It is waiting for input from stdin, as far as I understand. 3021 13:58:57 read(0, <unfinished ...> 3019 13:59:06 <... select resumed> ) = 0 (Timeout)
Oct
3
comment Long start time of MC due to bash function
If so you can instead of running mc run strace -f -t -o calls.txt mc` and look for long syscalls in calls.txt.
Oct
3
comment Long start time of MC due to bash function
strace -c is a wrong idea. What you need to do it to attach with strace in another session to your MC process when it suddenly freezes. something like strace -t -f -p $(pidof mc). Or to do the same with gdb
Oct
3
comment Long start time of MC due to bash function
Why not attach to mc with gdb or strace, check where it is waiting and add this info to your question?
Oct
3
comment How to rename multiple files by inserting numbers
You have not said anything about how to choose 0 or 1 or 2 when renaming. You then need to add these rules in your question
Oct
3
comment How to rename multiple files by inserting numbers
Using bash: for f in $(find . -name "pairs?_10.mp3"); do mv "$f" "${f%?_10.mp3}0${f#./pairs}" ; done;