From c0316494556cc921b30a0e9c36f3cd3e78b136ce Mon Sep 17 00:00:00 2001 From: rasbt Date: Wed, 21 May 2014 17:52:09 -0400 Subject: [PATCH] syntax fix --- useful_scripts/prepend_python_shebang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/useful_scripts/prepend_python_shebang.sh b/useful_scripts/prepend_python_shebang.sh index 175c4c6..edabd69 100644 --- a/useful_scripts/prepend_python_shebang.sh +++ b/useful_scripts/prepend_python_shebang.sh @@ -7,7 +7,7 @@ # instead of # >> python myscript.py -# prepends !#/usr/bin/python to all .py files +# prepends e.g., !#/usr/bin/python to all .py files find ./ -maxdepth 1 -name "*.py" -exec sed -i.bak '1i\ #!'"$(which python)"'