Mailinglist Archive: opensuse (2441 mails)

< Previous Next >
Re: [SLE] Copying file while adding preffix
  • From: Silviu Marin-Caea <silviu_marin-caea@xxxxxxxxxx>
  • Date: Fri, 24 Jun 2005 18:39:19 +0300
  • Message-id: <200506241839.19471.silviu_marin-caea@xxxxxxxxxx>
On Friday 24 June 2005 18:18, Tom Wekell wrote:
> Andrei Verovski (aka MacGuru) wrote:
> > Hi,
> >
> > Someone can suggest me how to recursively copy files from a given
> > directory while adding preffix to the copies in destination dir?
> >
> > Thanks in advance for any suggestion(s).
> >
> > Andrei
>
> How about: for i in `ls`; do
> cp $i /some/directory/prefix.$i;
> done

ls -A or else will list . and ..



< Previous Next >
Follow Ups