I hope this will solve your problem....

1. First I create 1000 files with .nbd.col extension... ( Just for fun of it
)

[EMAIL PROTECTED] test]# perl -e ' for ( $i=1; $i<1000; $i++){ `touch
$i.nbd.col` } '

2. then I rename them all

[EMAIL PROTECTED] test]# ls -1 | perl -e ' while(<>) {chomp;$ll=$_; ($a,
$nbd, $col) = split (/\./,$ll,3); `mv $ll $a.$nbd`; } '

Easy to do it in perl....

Take care,
Arif








On 9/30/07, Md. Shafayet Jahan <[EMAIL PROTECTED]> wrote:
>
>   Dear Group,
>
> Hope all of you are fine.
> I have some files names like xxxxxxxx.nbd.col
> Now I want to remove the .col (keep like xxxxxxx.nbd) from all the files
> together by a single command, what it would be?
>
> I tried: mv *.nbd.col *.nbd
> But its not working.
>
>
> Best Regards,
> Apu
>
> __________________________________________________________
> Yahoo! oneSearch: Finally, mobile search
> that gives answers, not web links.
> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
>
> [Non-text portions of this message have been removed]
>
>  
>



-- 
Mohammad Arif Rahim

I enjoy hats. And when one has filthy hair, that is a good accessory.

--Julia Robers


[Non-text portions of this message have been removed]

Reply via email to