Solved

Create folder script

Posted on 2007-11-28
3
207 Views
Last Modified: 2010-04-16
I have about 200 folders inside of 1 folder.

I am looking for a script that will Create a new folder inside of each of these folders entitled 2008

How exactly would I go about this?

Thanks so much as always
0
Comment
Question by:zyanj
3 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 125 total points
ID: 20370250
#!/usr/bin/perl
for ( grep -d, <*> ){
   mkdir "$_/2008" or warn "$_/2008 $!";
}
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20633911
Forced accept.

Computer101
EE Admin
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now