find . -name '*.osc' -or -name '*.img' -type f -size +3000 -print -exec
bzip2 '{}' \;
is a personal favorite, along those lines, with ample opportunities for
customization. (If the above command line wraps, it's all supposed to
be on one line)
Phil Jeffrey
Princeton
On 2/9/11 2:46 PM, Davi
On 02/09/11 09:49, Andreas Förster wrote:
Dear all,
I'm trying to create some space on our server and want to compress all
x-ray data files. I'm wondering what extensions I should search for.
mccd and img come to mind easily. What other extensions are commonly used?
Thanks.
Andreas
/bin
Dear Andreas,
I had the same problem frequently and wrote a little python-script for
compressing our images on our server. It might help you and you can
easily modify the extension for which the script should search for...
Best Regards,
Georg
-- code starts below
#!/usr/bin/pytho
Harry Powell had the most comprehensive answer, giving me the extensions
that are used in mosflm:
.img .mar* (i.e. .mar1600, .mar2300, etc) .mccd .osc .SFRM .sfrm .image
.ipf .cbf
In addition, finding files larger than a certain cutoff might do the
trick too - especially if the objective is
.ipf if you have files from (old) image plate detectors.
clement
> Dear all,
>
> I'm trying to create some space on our server and want to compress all
> x-ray data files. I'm wondering what extensions I should search for.
> mccd and img come to mind easily. What other extensions are commonly
>
.osc
2011/2/9 Andreas Förster :
> Dear all,
>
> I'm trying to create some space on our server and want to compress all x-ray
> data files. I'm wondering what extensions I should search for. mccd and img
> come to mind easily. What other extensions are commonly used?
>
> Thanks.
>
>
> Andreas
>
>
Dear all,
I'm trying to create some space on our server and want to compress all
x-ray data files. I'm wondering what extensions I should search for.
mccd and img come to mind easily. What other extensions are commonly used?
Thanks.
Andreas
--
Andreas Förster, Research Associat