Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
all the image files are in the OLD_*.extension naming scheme. I'm needing to move ALL 600+ like this to one backup directory. I have considered several ways of doing this, but Im under HUGE time constraints. I was wondering if anyone had done this before and if they could offer advice or script concepts for it.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
If all the files aren't in the same sub directory, then you probably want to make use of xargs it will take the output of some command and use that as arguments to another command.
Something along the lines of:
find /path -name "OLD_*.jpg" | xargs -i % mv % /newpath/
solaris has a slighty different way of requesting the output AND how you tell the shell what you're trying to do, but I figured it out in minutes instead of hours. THANKS AGAIN!!!!
Also. I was wondering what you study for BSD. I spend a great deal of time reading Oreilly publications but I'm really diving into BSD bigtime.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
The respective website, and the man pages. Seriously, unlike any other OS I've ever used (Windows, Solaris, Linux, etc) the documentation for each BSD is really good. The man pages usually give you working examples of how to use a command or utility. Also, there is a huge amount of documentation found on the website for each BSD (well, Free, Net, and Open any way) that is extremely helpful.
In my free time I read Absolute BSD and Absolute OpenBSD, both by Michael Lucas. They weren't literary master pieces, but they were pretty helpful. Building Secure Arcitectures with OpenBSD by [whoops, book not in front of me and I've forgotten] is also quite good.
An excellent book to look into for Unix-based command line terminology is QUE - Think Unix. I have it, and teaches you little tricks like this all over the book. Highly reccomended.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.