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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -