Hi - can anyone help me with this problem? What I want to do, is to
run the following egrep commands repeatedly, whilst incrementing a
variable in the command line:
egrep ^1[\ ] name.1 | wc -l
egrep -v ^1[\ ] name.1 > name.2
So, I'd then want this to happen all over again, but with all the
numbers in the above incremented:
egrep ^2[\ ] name.2 | wc -l
egrep -v ^2[\ ] name.2 > name.3
There must be a way of getting a loop to do this automatically. Could
someone mail me with ideas?
Thanks for your help,
Jeremy
--
Jeremy D.M. Crowe, Edinburgh University | Phone: +44 (0)31 650 2713
Department of Artificial Intelligence | Fax: +44 (0)31 650 6516