Yes. Another way I found was using awk instead of source as follows:
awk
source
find . -type f -name "*.1" | sed -nr "s/(^.*)\.(.*)\.1/mv \1.\2.1 \1.\2/p" | awk '{system($0)}'
This makes the eval of strings part of the pipeline.
eval
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes. Another way I found was using
awk
instead ofsource
as follows:This makes the
eval
of strings part of the pipeline.