Appending incremental numbers to filenames in pairs

A swapping-ground for Regular Expression syntax

Appending incremental numbers to filenames in pairs

Postby Oggmonster » Wed Aug 19, 2015 1:05 pm

I'm wondering if it's possible to append incremental numbers to the beginning of file names in pairs.

What I mean by that is I want the first 2 files to have 01, the next 2 files will have 02, the next 2 files will be 03 etc.

I can split the files into 2 different folders and do this and then rejoin them but is there a way of doing it as one command?

Also, the file names will need to have 2 or 3 digits depending on situation.

So the file will be like this

01 FirstName Surname Doc1
01 FirstName Surname Doc2
02 FirstName Surname Doc1
02 FirstName Surname Doc2
Oggmonster
 
Posts: 1
Joined: Wed Aug 19, 2015 12:50 pm

Return to Regular Expressions