Shell Script Template | Standardize your script creation

preview_player
Показать описание
#shell_scripting #unix_scripting #scripting
This is the best way to create your shell script template always standard and Uniq way of your style. Making Shell script template using shell script as a command.
Рекомендации по теме
Комментарии
Автор

Did you made your own shell script template.? Let us know need any help on practice.

TechArkit
Автор

Thank you 🙂
I replaced $file.sh by $1 for better understanding and readability, and gave: template <argument>.sh
👍🏼

harshpanchal
Автор

Recently started watching your videos on youtube they are really greate and please dont stop doing this kind valuable vidoe like this .and definitely I appreciate your hard toward this and we all glad to have this kind of content on youtube

shivushankar
Автор

Thank you very much, your Linux tutorial series is superb.

rotrose
Автор

please provide the file name you want to create : hello
touch: cannot touch '/script/hello.sh': No such file or directory
/usr/bin/template1: line 5: /script/hello.sh: No such file or directory --while creating file using template get error like this although i am already created dir. script

gayatri
Автор

What is the meaning of -e option with Echo command? What if i don't use -e ?

akshat
Автор

I'm able to get error :
Please provide filename you want to create: helloworld
touch: cannot touch â/scripts/helloworld.shâ: No such file or directory
/bin/template: line 5: /scripts/helloworld.sh: No such file or directory
..
...
...
till last scripted lines : No such file or directory

help
my machine : centos 7, connected via putty

arvindgupta
Автор

You can use the $HOME/Templates directory, then, create your template there and just use it by right-click > new > name_of_your_template.

Also, if you wanted to create a script for creating scripts, please:

* Use heredoc!
* Mind the latest FHS; don't use /scripts!
* Use #!/use/bin/env bash

renichbon