extracting fields

Hi,

i have a line with several fields (indefinite number of - count varies) separated by colon.

Now, i need to pick each field (except the first one) and have it assigned to variable within a loop. In other words, in the first iteration of the loop, the variable must be assigned with 2nd field; In 2nd iteration, variable must be assigned with 3rd field and so on till the end of fields.

Any help would highly be appreciated.

TIA
Prvn

Here's an example using the $PATH variable...

oldIFS="$IFS"
IFS=":"
set $PATH
shift
for i
do
   echo do something with $i
done
IFS="$oldIFS"

Thanks Ygor,

It worked like a charm.

Thanks much
TIA