Created
December 17, 2019 12:33
-
-
Save andmax/9853d85e35ac597a7d8f331ec28e3351 to your computer and use it in GitHub Desktop.
Run a shell script using the current shell instead of creating another one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- To run an sh script file using current shell, | |
2- where other sh scripts may have been sourced, | |
3- Add a dot and space before running it: | |
$ . <file_to_run.sh> | |
4- To run it creating a new shell use dot slash: | |
$ ./<file_to_run.sh> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment