My Techiestuff.
#!/usr/bin/tclsh foreach f [glob *.*] { if {[regexp -all -nocase {(.*)\.(.*)} $f dummy fullname ext] } { if { [regexp -all -nocase {(.*)\(00\)} $fullname dummy name ] } { set cmd "file rename -force \"$f\" \"$name.$ext\"" puts $cmd eval $cmd } } }
A better approach:regsub -all -nocase {\(00\)} $f "" cleanf
A better approach:
ReplyDeleteregsub -all -nocase {\(00\)} $f "" cleanf