diff options
author | Artem <artem@artem.(none)> | 2008-06-24 20:39:50 +0500 |
---|---|---|
committer | Artem <artem@artem.(none)> | 2008-06-24 20:39:50 +0500 |
commit | 2dbfcc0c510b46c9bfa288cb370b2d4f7fe7555d (patch) | |
tree | 3c4bc7c0532b98b42f6abfb53d92dd9ef57b0a7a /tests2/renamer | |
parent | eede42cb87a74b1a91b360a218d05f9a5c703e55 (diff) | |
download | markdown-2dbfcc0c510b46c9bfa288cb370b2d4f7fe7555d.tar.gz markdown-2dbfcc0c510b46c9bfa288cb370b2d4f7fe7555d.tar.bz2 markdown-2dbfcc0c510b46c9bfa288cb370b2d4f7fe7555d.zip |
second commit
Diffstat (limited to 'tests2/renamer')
-rwxr-xr-x | tests2/renamer | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests2/renamer b/tests2/renamer new file mode 100755 index 0000000..24add6f --- /dev/null +++ b/tests2/renamer @@ -0,0 +1,15 @@ +#!/bin/bash +test_dirs=( "markdowntest-cases" "php-markdown-cases" "php-markdown-extra-cases" "tm-cases" ) + +old_ext="text" +new_ext="txt" + +for (( i = 0 ; i < "${#test_dirs[@]}"; i++ )) +do + for j in "${test_dirs[$i]}"/*.${old_ext} + do + mv "$j" "${j/.text}".${new_ext} + done +done + + |