Solved

run perl on an external drive

Posted on 2011-09-08
4
233 Views
Last Modified: 2012-06-27
Hi. I want to run this script on on files in H:\unrenamedFiles

I tried cd  H:\unrenamedFiles
but cannot seem to get out of the C drive.

The purpose of the script is to rename all the files in the directory.
Is there a way to do this on the external drive?
Thank you.
perl -e "rename $_,(/([^\d_]*)_?(\d*)-?(\d*)-?(\d*)_?([\d-]*)(.*)/,qq($4-$3-$2_$5_$1$6)) or warn qq($_ $!) for <tweets_*.csv> "

Open in new window

0
Comment
Question by:onyourmark
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:pilson66
ID: 36501859
in console:

H:\
cd unrenamedFiles
0
 

Author Comment

by:onyourmark
ID: 36502197
Hi. I forgot to say this is windows.

'H:\' is not recognized as an internal or external command,
operable program or batch file.
0
 
LVL 8

Accepted Solution

by:
pilson66 earned 500 total points
ID: 36502214
start-->run-->cmd
H:
cd unrenamedFiles
0
 

Author Closing Comment

by:onyourmark
ID: 36502581
Thanks!
0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

617 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