We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 040b553 commit a22919aCopy full SHA for a22919a
1 file changed
useful_scripts/prepend_python_shebang.sh
@@ -7,8 +7,13 @@
7
# instead of
8
# >> python myscript.py
9
10
+# prepends !#/usr/bin/python to all .py files
11
find ./ -maxdepth 1 -name "*.py" -exec sed -i.bak '1i\
12
!#/usr/bin/python
13
' {} \;
14
-find . -name "*.bak" -exec rm -rf {} \;
15
+# removes temporary files
16
+find . -name "*.bak" -exec rm -rf {} \;
17
+
18
+# makes Python scripts executable
19
+chmod ug+x *.py
0 commit comments