Alex Rivera | Logout

Run bash commands from txt file

Asked 2012-11-26T15:29:35.987
79

I have some commands in txt file and I need to execute all them line by line. How could I do it?

Edit
Report

1 Answer

-6

Change the extension to .sh and for the first line #!/usr/bin/env bash and as someone else said chmod +x

answered 2012-11-26T15:34:22.537

Your Answer