Hi Michael,
Assuming rlnImageName is in column 8, you could try the below (which is
untested!!)
awk '{if (NF<3) {print} else {i++; $8=i"@newstack.mrcs"; print}}' <
particles.star > new.star
HTH,
Sjors
> yes, that's more or less right. so, the new star file should point to
> [log in to unmask], [log in to unmask], etc.
> instead of [log in to unmask],
> [log in to unmask], etc., but
> all other columns in the star file should stay the same.
> probably very easy for someone skilled with awk, perl, etc. but I am not
> that hypothetical someone
>
--
Sjors Scheres
MRC Laboratory of Molecular Biology
Francis Crick Avenue, Cambridge Biomedical Campus
Cambridge CB2 0QH, U.K.
tel: +44 (0)1223 267061
http://www2.mrc-lmb.cam.ac.uk/groups/scheres
|