Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

177.Text generator -- How to create all 5 level folders with number 1,2,3,4,5?

User: editor -- 2008-06-05          << 175  178 >>
Hits: 458
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" on windows platform 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

Screenshot 1:  Replace_Advanced_Window


Similar Examples:
How to remove/delete all lines with even line number? (55%)
How to remove/delete all lines with even line number? (55%)
How to rename many files to the format of file.number.ext? (52%)
How to search all jpg files in subfolders and copy to a new folder? (51%)
How to create an index page for all html files under a folder/directory? (50%)
How to change all the letters in a text file to upper cases? (49%)
How to extract/parse all lines with number greater than 40? (49%)
How to remove all the lines appeared in file B,C,D from file A? (48%)

Check Demo of Text generator
Keywords:
mkdir  123  perl  folders  create  return  sub  map  insert begin text  insert begin  create folders  perl replace text  insert beginning  insert text begin  function replace  insert text  begin with  replace if