Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Shell scripting help...

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
servo888
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Sun Feb 22, 2004 4:21 am

Shell scripting help...

  • Quote

Post by servo888 » Tue Mar 22, 2005 6:52 pm

I have a directory called basedir; inside that directory are subdirectories which contain pictures - IMGXXXX.jpg or picXXXX.JPG (all from various camera sources). I'm trying to create a script that going to surf these directories and copy out the images to an output folder... I need this because I want all the images in one directory, because some images have the same name so they get over written.

something like...

cp -r basedir/ outputdir/[1-100].jpg

But I have no clue how to use the [x-x]; It's in a man page, but I don't know where, so if anybody can point me in the right direction and explain how these brackets function will be great.
www.garberdesign.com
"You need a Windows PC to listen to this music." -listen.com
Top
Dana Merrick
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Sat Jul 24, 2004 2:44 am
Location: Trinity College
Contact:
Contact Dana Merrick
Website

  • Quote

Post by Dana Merrick » Tue Mar 22, 2005 7:16 pm

i think you may get a start in

Code: Select all

man bash
I'm proud of my life, and the things that I have done,
proud of myself, and the loner I've become.
you're free to whine; it will not get you far,
I do just fine, my car and my guitar.
-Say Anything
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Tue Mar 22, 2005 7:24 pm

http://forums.gentoo.org/viewtopic-t-119522.html and http://forums.gentoo.org/viewtopic-t-93006.html may be a good starting point.

Moved from OTW.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic