Skip to Content.
Sympa Menu

baslinux - Re: [BL] camera linux

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: "David Moberg" <davidjmoberg AT gmail.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] camera linux
  • Date: Mon, 20 Feb 2006 11:14:07 -0800

sindi keesan wrote:

> A former list member wants a script which will add a -1 to every file name
> on a floppy disk. for i in * ; do `mv i i-1`; done ??? Should it be ' '
> not ` ` ?

for i in *; do mv $i $i-1; done

No quotes, and use $i to reference a variable. This doesn't discriminate
between directories and regular files.

David




Archive powered by MHonArc 2.6.24.

Top of Page