I have some commands in txt file and I need to execute all them line by line. How could I do it?
Change the extension to .sh and for the first line #!/usr/bin/env bash and as someone else said chmod +x
#!/usr/bin/env bash
chmod +x