I'm trying to rename files by replacing certain conforming patterns, but I wanted to do this job recursively and still could not.
- / doc
| ----- text1.txt
| ----- texto2.txt
| - / doc2
_ | ----- text1.txt
_ | ----- texto2.txt
Follow my
#!/bin/bash
#padrao = $1
#substitui = $2
ls | rename "s/$1/$2/g"
This script renames well what I want to modify, but only in the requested folder, I tried the "ls - R" but it did not work to replace the requested folder in the internal directories.