bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HELP ON CP COMMAND


From: James Youngman
Subject: Re: HELP ON CP COMMAND
Date: Sun, 23 Apr 2006 19:35:54 +0100

On 4/23/06, tamilmarana <address@hidden> 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



address@hidden:~/tmp$ touch GAE010.GNT GAE110.GNT
address@hidden:~/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
address@hidden:~/tmp$ rename 's/.GNT$/.gnt'  *.GNT
Substitution replacement not terminated at (eval 1) line 1.
address@hidden:~/tmp$ rename 's/.GNT$/.gnt/'  *.GNT
address@hidden:~/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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]