find . -name "*stuff* | awk '
{
n = split( $1, a, "_" );
printf( "mv %s %s_%s__%s\n", $1, a[1], a[2], a[n] );
}
' # ksh ### remove the comment before ksh after you verify that the commands generated are what you want.
This will generate the move commands. After you verify that they are correct, you can pipe the output directly to ksh or bash
Thanks..I found it already. Its awk program , where FS =field seperator and OFS is output field seperator. I learned something new today!! Thanks alot guys~~~