Advertisement

07.11.2008 at 01:13PM PDT, ID: 23558553
[x]
Attachment Details

Replace spaces on file name with underscore

Asked by itortu in Perl Programming Language, Scripting Languages

Tags: Perl

I have a bunch of file with spaces on their names

VER -18-11H.Reserved Drawing Number - No Version.dgn

and

VER-05-07.Reserved Drawing Number - No Version.dgn

I need to either remove the spaces between each word and put it all together

or

replace the spaces with an underscore _

Can someone show me how to do this with perl please?

Thanks a bunch!Start Free Trial
[+][-]07.11.2008 at 01:21PM PDT, ID: 21985732

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 03:56PM PDT, ID: 21986675

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 04:01PM PDT, ID: 21986699

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 04:13PM PDT, ID: 21986737

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 04:20PM PDT, ID: 21986757

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 07:24AM PDT, ID: 21998335

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 09:38AM PDT, ID: 21999664

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Scripting Languages
Tags: Perl
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628