Olli Graf
4 months ago
5 changed files with 66 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||
|
#and.sh |
||||
|
|
||||
|
counter='1' |
||||
|
|
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
|
||||
|
if [ ${counter} -eq 3 ] && [ ${counter} -gt 2 ]; then |
||||
|
echo "drei" |
||||
|
fi |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
@ -0,0 +1,16 @@ |
|||||
|
#else.sh |
||||
|
|
||||
|
counter='1' |
||||
|
|
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
|
||||
|
if [ ${counter} -ne 3 ]; then |
||||
|
echo "${counter}" |
||||
|
else |
||||
|
echo "drei" |
||||
|
fi |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
@ -0,0 +1,11 @@ |
|||||
|
#linear.sh |
||||
|
|
||||
|
counter='1' |
||||
|
|
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
@ -0,0 +1,14 @@ |
|||||
|
#skip3rd.sh |
||||
|
|
||||
|
counter='1' |
||||
|
|
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
||||
|
let counter=counter+1 |
||||
|
|
||||
|
if [ ${counter} -ne 3 ]; then |
||||
|
echo "${counter}" |
||||
|
fi |
||||
|
let counter=counter+1 |
||||
|
echo "${counter}" |
@ -0,0 +1,11 @@ |
|||||
|
#strings.sh |
||||
|
|
||||
|
|
||||
|
string1='Skinner' |
||||
|
|
||||
|
if [[ ${string1} == 'Skinner' ]]; then |
||||
|
echo "Es ist Skinner" |
||||
|
else |
||||
|
echo " Es ist nicht Skinner" |
||||
|
fi |
||||
|
|
Loading…
Reference in new issue