Unable to capitalise first letters of "a an the of"

Discuss and share scripts and script files...
Locked
shuklaharshit75
Posts: 42
Joined: 10 Aug 2024 10:12

Unable to capitalise first letters of "a an the of"

Post by shuklaharshit75 »

I want to rename

Code: Select all

A a an an the the of dark of night.txt
to

Code: Select all

A A An An The The Of Dark Of Night.txt

but this script doesnt work.

Code: Select all

rename s, "-._[]()%,`*~> ", , , 8; rename r, "\s+ >  ", , , 8;; rename r, "\s+(\.[^.]+?$|$) > $1", , , 8; #139; #128; #126; #113;
please provide complete working script.

Locked