Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string_replacement () {
- for i in *;do
- if
- [[ "$i" == *"${k}"* ]];then
- rename "s/${k}/${l}/g" "$i"
- fi
- done
- }
- # replace anything in the k variable with anything in the l variable
- # limited to a single directory
- # k=""
- # l=""
- # string_replacement
Advertisement
Add Comment
Please, Sign In to add comment