Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

177.Text generator -- How to create all 5 level folders(from 1, 1\1, 1\1\1, 1\1\1\1, 1\1\1\1\1, 1\1\1\1\2, ... 5\5\5\5\5)?

User: editor -- 2008-06-05
Hits: 226
Type: Text generator   
Search all Text generator examples
Description:
How to create all 5 level folders(from 1, 1\1, 1\1\1, 1\1\1\1, 1\1\1\1\1, 1\1\1\1\2, ... 5\5\5\5\5)?
Output Sample:
mkdir 1\
mkdir 1\1\
mkdir 1\1\1\
mkdir 1\1\1\1\
mkdir 1\1\1\1\1\
mkdir 1\1\1\1\2\
...
mkdir 5\5\5\5\
mkdir 5\5\5\5\1\
mkdir 5\5\5\5\2\
mkdir 5\5\5\5\3\
mkdir 5\5\5\5\4\
mkdir 5\5\5\5\5\
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
Procedures:
1. ctrl-h open 'Replace' Dialog
2. Select 'Advanced' page:

set 'insert begin text' to:


set 'Run following at the beginning of replace' to£º 

3. Click 'Replace', done! Save the result to a.bat and run.

Note: above is to create a perl function mk(), and call the function.
Download Script:  scripts/177.rst.zip

Similar Examples:
How to change all the letters in a text file to upper cases? (35%)
How to remove all folders in a list containg folders and files? (35%)
How to batch rename files in different folders and move them to a common folder? (34%)
How to batch rename each html file to the title of the html file? (33%)
How to remove/delete specified lines such as 1,2,3 and 9,11,13,15,... in a text file? (33%)
How to reverse all cases of letters in a text file? (32%)
How to batch rename files by removing all the letters and keep the rest? (31%)
How to extract all telephone numbers from a text file? (31%)

Check Demo of Text generator