python - bash equivalent for os.walk? -
i using 2to3 fix script library, , seems command line thing, not shell thing.
i want files /home/me/scripts downward, assuming end in .py. there easy way 2to3 -y filename each file under folder in shell?
there's find command:
find /home/me/scripts -iname "*.py" -exec 2to3 {} \; the -exec argument tell execute command follows after argument, 2to3 {} in case. each file found, {} replaced name of file.
Comments
Post a Comment