M
M
Mark Adams2016-04-05 21:56:12
bash
Mark Adams, 2016-04-05 21:56:12

How to make macOS terminal execute multiple commands in sequence?

There are several ready-made commands in a text file, how to run them sequentially through the Terminal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-04-05
@ilyakmet

1. Sequentially paste and execute them in the terminal :-)
2. Add the line #!/bin/bash at the beginning of the file, rename the file with the .sh extension, make the file executable chmod +x myfile.sh, run it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question