Thanks Thanks:  0
Likes Likes:  0
Needs Pictures Needs Pictures:  0
Picture(s) thanks Picture(s) thanks:  0
Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23

Thread: Learning Curve

  1. #16
    Join Date
    Jul 2006
    Location
    Port Huon
    Posts
    2,685

    Default

    I just wrote a little script to rename the files but I've been beaten to it.
    I shouldnt have stopped for dinner.

    [although mine also removes the (2) from the renames file name]

  2. # ADS
    Google Adsense Advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many





     
  3. #17
    Join Date
    Oct 2004
    Location
    Glen Forrest, Western Australia
    Age
    62
    Posts
    531

    Default

    Quote Originally Posted by snowyskiesau View Post
    I just wrote a little script to rename the files but I've been beaten to it.
    I shouldnt have stopped for dinner.

    [although mine also removes the (2) from the renames file name]
    I didn't bother with that I just wanted the -copy and spaces gone
    The program I downloaded to do it also will do that I just didn't have time to read the instructions

    Warrick

  4. #18
    Join Date
    Sep 2005
    Location
    Cheltenham, Melbourne
    Age
    74
    Posts
    2,224

    Default

    Thanks Ken, and Warrick.
    Chris
    ========================================

    Life isn't always fair

    ....................but it's better than the alternative.

  5. #19
    Join Date
    Feb 2004
    Location
    Oxley, Brisbane
    Age
    79
    Posts
    3,041

    Default

    Quote Originally Posted by warrick View Post
    Or you can use this little file to rename them in 10 seconds or
    download the updated version below

    It doesn't work under Linux. And NO I WILL NOT RUN A WINDOWS EMULATOR.
    Bob Willson
    The term 'grammar nazi' was invented to make people, who don't know their grammar, feel OK about being uneducated.

  6. #20
    Join Date
    Jul 2006
    Location
    Port Huon
    Posts
    2,685

    Default

    Quote Originally Posted by Bob Willson View Post
    It doesn't work under Linux. And NO I WILL NOT RUN A WINDOWS EMULATOR.
    Just for you Bob, here's the perl script I used. Just save it in to a file rename.pl and make it executable.

    #!/usr/bin/perl
    $op = shift or die $help;
    chomp(@ARGV = <STDIN>) unless @ARGV;
    for (@ARGV) {
    $was = $_;
    eval $op;
    die $@ if $@;
    rename($was,$_) unless $was eq $_;
    }


    Then run it from the command line in the directory where the strangely named files are with a command line like:

    rename.pl 's/(Copy)| - | (2)//g' *.dxf

    There are some .DXF and .zip file as well.

  7. #21
    Join Date
    Feb 2004
    Location
    Oxley, Brisbane
    Age
    79
    Posts
    3,041

    Default

    Quote Originally Posted by snowyskiesau View Post
    Just for you Bob, here's the perl script I used. Just save it in to a file rename.pl and make it executable.

    #!/usr/bin/perl
    = shift or die ;
    chomp(@ARGV = <STDIN>) unless @ARGV;
    for (@ARGV) {
    = ;
    eval ;
    die $@ if $@;
    rename(,) unless eq ;
    }


    Then run it from the command line in the directory where the strangely named files are with a command line like:

    rename.pl 's/(Copy)| - | (2)//g' *.dxf

    There are some .DXF and .zip file as well.
    Hmm, that may be why more people use another language altogether Geoff. That is really esoteric. "Shift or die"?

    PS I had already done it all by hand.
    Bob Willson
    The term 'grammar nazi' was invented to make people, who don't know their grammar, feel OK about being uneducated.

  8. #22
    Join Date
    Jul 2006
    Location
    Port Huon
    Posts
    2,685

    Default

    The script as it appears won't work any way. Seems the forum software strips out variables that start with a $ symbol as perl ones do.

  9. #23
    Join Date
    Dec 2010
    Location
    Wallerawang
    Posts
    42

    Default

    Hi Chris,
    when you done the windows and slots did you pocket them or profile them.
    I'm about to try and cut one out.

    Kiwiken

Page 2 of 2 FirstFirst 12

Similar Threads

  1. The learning curve
    By SAISAY in forum CNC Machines
    Replies: 4
    Last Post: 21st July 2012, 11:20 AM
  2. Learning curve
    By rob laundy in forum BOAT BUILDING / REPAIRING
    Replies: 4
    Last Post: 11th July 2010, 05:43 PM
  3. 1st Question in this learning curve
    By lubbing5cherubs in forum WOODTURNING - ORNAMENTAL TURNING
    Replies: 8
    Last Post: 13th July 2008, 07:59 AM
  4. steep learning curve!
    By s_m in forum DESIGN & DESIGNING / GOOGLE SKETCHUP
    Replies: 18
    Last Post: 1st November 2007, 11:22 AM
  5. My Learning Curve Box!
    By Effigy in forum BOX MAKING
    Replies: 8
    Last Post: 5th September 2006, 03:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •