We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6909a51 commit 46e9851Copy full SHA for 46e9851
subsections/h3-shebangs.inc
@@ -42,7 +42,7 @@ To change the shebangs in the files you can use one (or a combination) of the fo
42
.. code-block:: console
43
44
$ # Change shebang in individual files
45
- $ sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' path/to/file1 file2 file3 ...
+ $ sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' path/to/file1 file2 file3 ...
46
47
$ # Change shebang in all relevant files in this directory and all subdirectories
48
$ # See `man find` for how the `-exec command {} +` syntax works
0 commit comments