I have some commands in txt file and I need to execute all them line by line. How could I do it?
just change the extension of the file to .sh
add /bin/bash at starting of the file
change the permission of the file to executable
than simply run ./filename.sh command in command line. all the commands in the file will be executed