How do you execute a command in a shell script?

Huỳnh Hiền

New member
How do you execute a command in a shell script?
Answer
There are a couple of different ways you can do this: Make the other script executable, add the #!/bin/bash line at the top, and the
path where the file is to the $PATH environment variable. Then you can call it as a normal command; Or call it with the source command (alias is . )
 

Tìm kiếm

Back
Top