V
V
Vyacheslav Lebedev2016-05-26 22:58:22
linux
Vyacheslav Lebedev, 2016-05-26 22:58:22

Utility to rename in depth in all files?

Good evening!
I'm looking for a utility under ubuntu for renaming all files in the depth where the match of the text inside the files is found.
I know there is such a utility in webstorm, but I don’t want to use such a monster for a small task :)
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
strelmax, 2016-05-26
@slavikse

for i in ` find /yourdirectory -type f`;do sed -i 's/change/change/g' $i;
done
-entry-text=""`
b=`zenity --entry --text="What to change to" --entry-text=""`
for i in `find /yourdirectory -type f`;do sed -i " s/${a}/${b}/g" $i;done

#
#algooptimize #bottize, 2016-05-26
@user004

stackoverflow.com/questions/6758963/find-and-repla...
replacing the text inside ,or should the name be replaced?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question