diff options
author | Michele Calgaro <[email protected]> | 2023-04-18 20:47:44 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-04-18 20:47:44 +0900 |
commit | 425e16ad894fd23d7c5b061acffba6cd04a1b1db (patch) | |
tree | e1f794e07812bcd59a4b518747bf9dc5c2a5a163 /indenters/__TODO/example.sh | |
parent | 11451cea9db07b2a257297de57d76a8dbb7e3a5e (diff) | |
download | universal-indent-gui-tqt-425e16ad894fd23d7c5b061acffba6cd04a1b1db.tar.gz universal-indent-gui-tqt-425e16ad894fd23d7c5b061acffba6cd04a1b1db.zip |
Added code to load last open file or an example or an untitled file.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'indenters/__TODO/example.sh')
-rwxr-xr-x | indenters/__TODO/example.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/indenters/__TODO/example.sh b/indenters/__TODO/example.sh new file mode 100755 index 0000000..c2ac3f1 --- /dev/null +++ b/indenters/__TODO/example.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +string="Hallo Welt" +# if else test +if [ -n "$string" ]; then +echo "The string is \"$string\"!" +else +echo "The string is empty!" +fi + +# for test +array="Text1 Text2 Text3 Text4" +for i in $array +do +echo "The string \"$i\" is in the array!" +done + +count=0 +while [ $count -le 10 ] +do +echo "We've counted up to $count." +count=$[$count+1] #increment counter by one. +done + +echo "Passed everything!" +#read -p "press any key to continue" + |