Bash run all commands in a file

In this article let’s discuss about Bash run all commands in a file. Let’s go through the following methods without any delay.

Method 1:

# Basic syntax:
bash your_file
# This is an instance in which something is surprisingly easier that you
# might expect on the command line. Just list the shell commands you 
# want to run in a file and run bash that_file and every command is run 
# sequentially line by line

Hope the above solution works.

Realted Posts : How to sort numerically in linux ls