Difference between revisions of "Desktop scripting/sh"

From Adam Meola - wiki
Jump to navigation Jump to search
Line 9: Line 9:
  
 
: 1) cd to the folder where you'd like to save your script
 
: 1) cd to the folder where you'd like to save your script
: 2) type:
+
: 2) run:
 
:: touch [nameYourFileHere].sh
 
:: touch [nameYourFileHere].sh
 +
::: this will create a blank plain text file of that name
 
===Using an SH script===
 
===Using an SH script===

Revision as of 16:05, 2 September 2020

SH scripting!

(available on POSIX systems)

With an SH script, almost anything you can in the terminal can be written in advance, and played back at your leisure.


Setting up an SH script

1) cd to the folder where you'd like to save your script
2) run:
touch [nameYourFileHere].sh
this will create a blank plain text file of that name

Using an SH script