Thanks: 0
Likes: 0
Needs Pictures: 0
Picture(s) thanks: 0
Results 16 to 23 of 23
Thread: Learning Curve
-
23rd August 2012, 09:22 PM #16GOLD MEMBER
- Join Date
- Jul 2006
- Location
- Port Huon
- Posts
- 2,685
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]Geoff
The view from home
-
23rd August 2012 09:22 PM # ADSGoogle Adsense Advertisement
- Join Date
- Always
- Location
- Advertising world
- Posts
- Many
-
23rd August 2012, 09:40 PM #17
-
23rd August 2012, 09:48 PM #18
Thanks Ken, and Warrick.
Chris
========================================
Life isn't always fair
....................but it's better than the alternative.
-
24th August 2012, 12:05 AM #19
-
24th August 2012, 12:32 AM #20GOLD MEMBER
- Join Date
- Jul 2006
- Location
- Port Huon
- Posts
- 2,685
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.Geoff
The view from home
-
24th August 2012, 12:53 AM #21Bob Willson
The term 'grammar nazi' was invented to make people, who don't know their grammar, feel OK about being uneducated.
-
24th August 2012, 12:58 AM #22GOLD MEMBER
- Join Date
- Jul 2006
- Location
- Port Huon
- Posts
- 2,685
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.
Geoff
The view from home
-
16th September 2012, 02:55 PM #23Intermediate Member
- Join Date
- Dec 2010
- Location
- Wallerawang
- Posts
- 42
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
Similar Threads
-
The learning curve
By SAISAY in forum CNC MachinesReplies: 4Last Post: 21st July 2012, 11:20 AM -
Learning curve
By rob laundy in forum BOAT BUILDING / REPAIRINGReplies: 4Last Post: 11th July 2010, 05:43 PM -
1st Question in this learning curve
By lubbing5cherubs in forum WOODTURNING - ORNAMENTAL TURNINGReplies: 8Last Post: 13th July 2008, 07:59 AM -
steep learning curve!
By s_m in forum DESIGN & DESIGNING / GOOGLE SKETCHUPReplies: 18Last Post: 1st November 2007, 11:22 AM -
My Learning Curve Box!
By Effigy in forum BOX MAKINGReplies: 8Last Post: 5th September 2006, 03:57 PM