3
I am trying to rename files by making the default overwriting certain patterns, however, I wanted to do this work recursively and still could not get.
-/doc
|----- texto1.txt
|----- texto2.txt
|--/doc2
_|----- texto1.txt
_|----- texto2.txt
Follows my
#!/bin/bash
#padrao = $1
#substitui = $2
ls | rename "s/$1/$2/g"
This script renames well what I want to modify, however only in the requested folder, I tried the "ls - R" however it did not work to do the substitution also in the internal folder(directories) the requested folder.
Vlw, Lucas Polo. I checked here is just what I needed.
– charles.eduardo