Find pattern between first [here] , [] [] etc

Hi

I need to extract 12333 value in the error line.

Thu Aug 14 07:20:36 2008 ORA-00600: internal error code, arguments: [12333], [9], [196], [2], [], [], [], []

I use string=`echo $ERROR_LINE | awk '{print $11}'|tr -d '[],'`
and it works. I just wonder if there is more clean way so that I can say - give me value in first [] or second etc ..

Thanks

you could

echo $ERROR_LINE|cut -d'[' -f2|cut -d']' -f1

or use perl:
echo $ERROR_LINE|perl -nle '$_ =~ /\[(\d+)\]/;print $1;'

hth,
dv

Thank you:b:. I might use cut command