Tuesday, November 7, 2017

Writting a shell script file from linux command shell

$ echo '#!/bin/sh' > shell_from_cmd.sh
$ echo 'echo my firt script' >> shell_from_cmd.sh
$ chmod 755 my-script.sh
$ ./my-script.sh
my firt script
$

No comments:

Post a Comment