diff options
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 + + |