On 4/23/06, tamilmarana <[EMAIL PROTECTED]> wrote: > IN DOS: > > COPY *.GNT *.gnt -> IT COPIES ALL THE FILES WITH EXTENSION *.GNT AS *.gnt > > IN linux: > example: > > -RWXR-X--- 1 ROOT ROOT 11093 APR23 08:07 GAE010.GNT > -RWXR-X--- 1 ROOT ROOT 11094 APR23 08:07 GAE110.GNT
If the above is really the output you are getting, your terminal (stty) settings are very oddly set up. However, I suspect that this is not the actual output you are seeing. (in particular, the first column of the output of "ls" is always lower-case). You might find it helpful to read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html and to read http://www.catb.org/~esr/faqs/smart-questions.html > The above files at a stretch to copy in to the same file name but with > extension *.gnt > > i.e. ] cp *.GNT *.gnt - > This is not doing the required > > ] echo cp *.GNT *.gnt -> This is not doing the required > > ] rename 's/.GNT$/.gnt' *.GNT -> this is not doing the required > > Please guide me sirs. The error message you get when you try the third command points to the problem [EMAIL PROTECTED]:~/tmp$ touch GAE010.GNT GAE110.GNT [EMAIL PROTECTED]:~/tmp$ ls -l total 0 -rw-r--r-- 1 james users 0 2006-04-23 19:28 GAE010.GNT -rw-r--r-- 1 james users 0 2006-04-23 19:28 GAE110.GNT [EMAIL PROTECTED]:~/tmp$ rename 's/.GNT$/.gnt' *.GNT Substitution replacement not terminated at (eval 1) line 1. [EMAIL PROTECTED]:~/tmp$ rename 's/.GNT$/.gnt/' *.GNT [EMAIL PROTECTED]:~/tmp$ ls -l total 0 -rw-r--r-- 1 james users 0 2006-04-23 19:28 GAE010.gnt -rw-r--r-- 1 james users 0 2006-04-23 19:28 GAE110.gnt _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils