1,436 reputation
317
bio website
location Oxford, United Kingdom
age 28
visits member for 2 years, 10 months
seen 2 days ago

PhD student in Biophysics.

My project combines experimental (microscopy) and computational (molecular dynamics simulations) work.

Outside of the lab, I cook and bake quite a lot. I also have a passion for (fine) wine and am involved in one of Oxford's wine societies.


Sep
24
awarded  Autobiographer
May
15
awarded  Popular Question
Apr
28
awarded  Popular Question
Feb
8
awarded  Yearling
Oct
16
answered How to rename files and directory with *.~1~ suffix to original name?
Sep
5
revised cp or mv files to same directory they are already in when I am in another?
added 262 characters in body
Sep
5
revised cp or mv files to same directory they are already in when I am in another?
added 80 characters in body
Sep
5
comment cp or mv files to same directory they are already in when I am in another?
Your second comment was a simple omission on my part, that required a simple edit to fix. I don't see how this answer deserved a downvote. With the edit (technicality), it does solve the problem and is more general as it allows swapping any part of the path (I often used something similar on $PWD). Sure, maybe it's not the most elegant but it points to the fact that shell does have textual substitutions and word designators, which some users might still find useful to research.
Sep
5
revised cp or mv files to same directory they are already in when I am in another?
added 10 characters in body
Sep
5
answered cp or mv files to same directory they are already in when I am in another?
Aug
9
answered Applying a change to every line?
Aug
7
accepted Variable declaration in parallel sh -c …
Aug
7
comment Variable declaration in parallel sh -c …
That is a very good point. I was indeed expecting it to behave like xargs (where the first, empty declaration of name was not necessary). I thought the single quotes should sort things out and the QUOTING section of the manpage was much needed in the end to figure out what was going on (again, contrary to expectations).
Aug
7
comment errors trying to transfer via SCP
it may seem stupid but is ssh installed on oldserver? or, is it installed in a standard place?
Aug
7
revised Variable declaration in parallel sh -c …
deleted 8 characters in body
Aug
7
asked Variable declaration in parallel sh -c …
Jul
6
awarded  Nice Answer
Feb
8
awarded  Yearling
Nov
9
comment find and globbing (and wildcards)
Yes, true. I guess I'm baffled about the behaviour because doing things like find ... -name '*.txt' works (yes, yes, single quotes) and handles those globs properly, but when I pass such globs to -exec[dir], it fails. I made a comment in my post about single quotes and no quotes as at some point I did try everything, so dropping the quotes was the first thing I did, trying to figure out why things failed. The last example was to show that even the obvious thing didn't work (yes, I was expecting to see .bashrc, .bash_history, etc.).
Nov
9
comment find and globbing (and wildcards)
Yes, I am not worried about any unexpected characters in file names, so I wasn't bothered about the ls. The point was to find some files that live in the same file as another file (and then process them further).