#!/bin/bash
a=(a h j k l a)
a+=(b c a l k h)
i=0
while [ $i -lt 14 ]
do
echo "${a[$i]}"
i=$(($i+1))
done
for s in "${a[@]}"
do
echo "$s"
done
#!/bin/bash
l=$(ls -a)
for s in $l
do
echo "$s"
done
#!/bin/bash
# Hello World
echo "Hallo Welt"
#!/bin/bash
if [ "$1" == "David Vajda" ]
then
echo "Das bin ich"
elif [ "$1" == "Dave Vajda" ]
then
echo "Das bin auch ich"
else
echo "Das ist jemand anderes"
fi
#!/bin/bash
#
# MyServer Init Script
#
### BEGIN INIT INFO
# Provides:
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Description:
# Short-Description:
### END INIT INFO
case "$1" in
start)
start-stop-daemon --start --exec myserver
;;
stop)
start-stop-daemon --stop myserver
;;
reload)
start-stop-daemon --stop myserver
start-stop-daemon --start --exec myserver
;;
esac
#!/bin/bash
i=0
while [ $i -lt 10 ]
do
echo "Hallo zum $(($i+1))."
i=$(($i+1))
done