diff options
author | Michele Calgaro <[email protected]> | 2022-07-10 00:23:24 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-07-10 00:23:24 +0900 |
commit | 5bb4d4359a52e9caf331f6001b953dc553df64df (patch) | |
tree | 0e0ef61d88a17bf3fd53ee7bc32d3ec4b765b545 /indenters/example.sh | |
download | universal-indent-gui-tqt-5bb4d4359a52e9caf331f6001b953dc553df64df.tar.gz universal-indent-gui-tqt-5bb4d4359a52e9caf331f6001b953dc553df64df.zip |
Initial import of UniversalIndentGUI 1.2.0 from Debian snapshot
(https://snapshot.debian.org/package/universalindentgui/1.2.0-1.1).
The code is available under GPL2 licence.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'indenters/example.sh')
-rwxr-xr-x | indenters/example.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/indenters/example.sh b/indenters/example.sh new file mode 100755 index 0000000..c2ac3f1 --- /dev/null +++ b/indenters/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" + |