dev/bash/studyBash/bash_script

106 lines
1.4 KiB
Bash

#!/bin/bash
echo $0
#n=0
#until [ $n -eq 4 ]; do
# echo $n
# let n=n+1
#done
#n=0
#while [ ! $n -eq 4 ]; do
# echo $n
# let n=n+1
#done
# #Стирает все пустые файлы
#for file in ./*
#do
# if [ ! -s $file ]; then
# echo "Erasing $file"
# rm $file
# fi
#done
#for name # Ищет среди пронумерованных переменных $1 $2 .. .
#do
# echo $name
#done
#for item in `cat backbonedirs`
#do
# echo $item
#done
#for part in `date`; do
# echo $part
#done
#for i in Kolya Vasya Petia
#do
# echo -n $i", "
#done
#echo -n "please input string:"; read s
#case $s in
# *ello*)
# echo "Hello!"
# ;;
# *ye*)
# echo "Good Bye!"
# ;;
# *[SsFf]uck*|*Xuj*)
# echo "Fuck your self ! =8( "
# ;;
# *|[A-z]) # =)
# echo "I don't understand you 8)"
# ;;
#esac
#echo -n "a = "; read a
#echo -n "b = "; read b
#if [ $a -lt 2 ]; then
# if [ $b -gt 1 ]; then
# echo "a less than 2 and b greater than 1"
# fi
#else echo "no exceptions"
#fi
#echo -n "a = "; read a
#echo -n "b = "; read b
#if [ $a -eq $b ]; then echo "a equal b"
# elif [ $a -lt $b ]; then echo "a less than b"
# else echo "a greater than b"
#fi
#if[!-e
#if (true) #[echo trigger.dat];
#then
#./mount_backbone.run
# echo "ON"
# echo -n 0 > trigger.dat
#fi
#else
# echo "OFF"
#fi
#else
#./umount_backbone.run
# echo "OFF"
# echo -n 1 > trigger.dat
#elif