#!/bin/sh
cmd0=`whereis emerge | awk {'print $2'}`
_new_check_lsb()
{
echo "Какая у вас ОС - Ubuntu или Gentoo? Или Help для того чтобы узнать какая у вас ОС"
read -p "Введите название: " yn
case "${yn,,}" in
gentoo)
echo "test - gentoo"
;;
ubuntu)
echo "test - ubuntu"
;;
help)
if [ "$cmd0" = "" ]; then
echo "Ubuntu"
else
echo "Gentoo"
fi
_new_check_lsb
;;
*)
echo "Вы не чего не ввели"
;;
esac
}
_new_check_lsb
127.0.0.1 - delit [31/Jul/2012:14:41:40 +0400] "GET /info/my/ip/ HTTP/1.0" 200 82
127.0.0.1 - delit [31/Jul/2012:14:41:44 +0400] "GET /info/my/ip/ HTTP/1.0" 200 82
127.0.0.1 - loadup [31/Jul/2012:14:42:03 +0400] "GET /broadcast/ajax/view/top/_/main/?censored=1 HTTP/1.0" 200 101
127.0.0.1 - loadup [31/Jul/2012:14:43:04 +0400] "GET /broadcast/ajax/view/top/_/main/?censored=1 HTTP/1.0" 200 101
127.0.0.1 - delit [31/Jul/2012:14:43:18 +0400] "GET /info/my/ip/ HTTP/1.0" 200 82
127.0.0.1 - delit [31/Jul/2012:14:43:19 +0400] "GET /info/my/ip/ HTTP/1.0" 200 82
127.0.0.1 - delit [31/Jul/2012:14:43:29 +0400] "GET / HTTP/1.0" 200 47735
127.0.0.1 - - [31/Jul/2012:14:43:33 +0400] "POST /amfphp/gateway.php HTTP/1.0" 200 32
127.0.0.1 - delit [31/Jul/2012:14:43:35 +0400] "GET /broadcast/ajax/view/top/_/main/?censored=1 HTTP/1.0" 200 101
127.0.0.1 - loadup [31/Jul/2012:14:43:49 +0400] "POST /core/ajax/packet/send/ HTTP/1.0" 200 117
127.0.0.1 - loadup [31/Jul/2012:14:44:04 +0400] "GET /broadcast/ajax/view/top/_/main/?censored=1 HTTP/1.0" 200 101