To execute a script file using an executable found in the PATH environment variable using the env executable, you must specify the absolute path to the env executable with the required interpreter argument on the first line of the script file:
1#!/usr/bin/env bash
1#!/usr/bin/env python3
1#!/usr/bin/env python2
1#!/usr/bin/env perl
Important: the way to create shebang described here is portable. You can also use
#!/bin/bash, but it may unfortunately not be available in some distributions.

