Dear all
I have about 70 folders of data collected at Diamond. As I only want to keep about 50 of them, is there a script that can read in the folder names from a text file and download those?
Normally, I use FileZilla but it gets tedious to click so many times after a while....
Secondly, some folders have one sweep of data, some others with two or even three, is it possible to run a command from terminal that will filter different sweeps and output the number of frames?
For example, in a folder with files:
xxxx_sweep1_0001.cbf - xxxx_sweep1_1800.cbf
xxxx_sweep2_0001.cbf - xxxx_sweep2_0900.cbf
I want to get a text file output containing a line saying:
/folder/name/sweep1 - 1800
/folder/name/sweep2 - 900
The idea is so that I can feed those lines into XDS.INP without checking how many sweeps there are in each folder and how many frames.
I'm pretty sure someone on the BB has a trick for this.
Thanks.
|