Solved

Create folder script

Posted on 2007-11-28
3
195 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 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

18 Experts available now in Live!

Get 1:1 Help Now