if [[ -d "$1" ]]
then
find "$1" -type f -ls 2> /dev/null | sort -rnk7 | head -10 | awk '{printf "%10d MB\t%s\n",($7/1024)/1024,$NF}'
elif [[ "$1" == "-h" || "$1" == "--help" ]]
then
echo "Help me!"
else
echo "Не директория!"
fi
if [ "$#" -gt "1" ]
then
echo "Аргументов слишком много"
exit 1
fi
#!/bin/bash
if [ -z "$1" ]
then
echo "Введите директорию!"
exit 1
fi
if [[ -d "$1" ]]
then
find "$1" -type f -ls 2> /dev/null | sort -rnk7 | head -10 | awk '{printf "%10d MB\t%s\n",($7/1024)/1024,$NF}'
elif [[ "$1" == "-h" || "$1" == "--help" ]]
then
echo "Help me!"
else
echo "Не директория!"
fi
check_feature_one() {
local var=$(get_feature_name)
local pkg=$(get_option_field $f_pkg)
local value=$(eval echo \$$var)
if [ -z $var ]; then continue; fi
if [ $value = enable ]; then
check_pkg_or_exit "$pkg"
elif [ $value = autodetect ]; then
if check_pkg "$pkg"; then
value="enable"
eval $var="enable"
else
value="disable"
eval $var="disable"
fi
fi
if [ $value = enable ]; then
add_define HAVE_$var 1
else
add_define HAVE_$var 0
fi
}
if ! [ -z $var ]; then return 1; fi
1538646789.326 8748 192.168.0.92 TCP_MISS/200 6098 CONNECT wsapi.skype.com:443 - HIER_DIRECT/13.94.211.113 -
1538646791.760 2433 192.168.0.92 TCP_MISS/200 11354 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646791.760 966 192.168.0.92 TCP_MISS/200 6294 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646791.762 878 192.168.0.92 TCP_MISS/200 5637 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646791.762 878 192.168.0.92 TCP_MISS/200 5637 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646791.762 878 192.168.0.92 TCP_MISS/200 5637 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646791.762 1008 192.168.0.92 TCP_MISS/200 6870 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646796.761 1104 192.168.0.92 TCP_MISS/200 6406 CONNECT static.asm.skype.com:443 - HIER_DIRECT/52.178.207.179 -
1538646796.761 375 192.168.0.92 TCP_MISS/200 9784 CONNECT static-asm.secure.skypeassets.com:443 - HIER_DIRECT/68.232.34.200 -
1538646800.419 95783 192.168.0.92 TCP_MISS/200 5874 CONNECT flagsapi.skype.com:443 - HIER_DIRECT/137.135.208.20 -
1538646801.761 4798 192.168.0.92 TCP_MISS/200 6292 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646806.911 2230 192.168.0.92 TCP_MISS/200 6375 CONNECT api.asm.skype.com:443 - HIER_DIRECT/52.114.75.69 -
1538646811.155 127018 192.168.0.92 TCP_MISS/200 6094 CONNECT evoke-windowsservices-tas.msedge.net:443 - HIER_DIRECT/13.107.5.88 -
1538646811.911 4392 192.168.0.92 TCP_MISS/200 5963 CONNECT browser.pipe.aria.microsoft.com:443 - HIER_DIRECT/52.114.32.8 -
1538646839.320 137327 192.168.0.92 TCP_MISS/200 8103 CONNECT browser.pipe.aria.microsoft.com:443 - HIER_DIRECT/52.114.128.9 -
1538646841.917 517 192.168.0.92 TCP_MISS/200 6106 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646851.918 4816 192.168.0.92 TCP_MISS/200 7148 CONNECT api.asm.skype.com:443 - HIER_DIRECT/52.114.75.69 -
1538646866.923 3182 192.168.0.92 TCP_MISS/200 5963 CONNECT browser.pipe.aria.microsoft.com:443 - HIER_DIRECT/52.114.32.8 -
1538646876.925 776 192.168.0.92 TCP_MISS/200 5963 CONNECT browser.pipe.aria.microsoft.com:443 - HIER_DIRECT/52.114.132.23 -
1538646881.327 179252 192.168.0.92 TCP_MISS/200 8029 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646891.927 1229 192.168.0.92 TCP_MISS/200 6122 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538646918.067 66941 192.168.0.92 TCP_MISS/200 8047 CONNECT web.skype.com:443 - HIER_DIRECT/40.76.27.97 -
1538646956.916 95246 192.168.0.92 TCP_MISS/200 9788 CONNECT static-asm.secure.skypeassets.com:443 - HIER_DIRECT/68.232.34.200 -
1538646965.550 500404 192.168.0.92 TCP_MISS/200 6698 CONNECT settings-ssl.xboxlive.com:443 - HIER_DIRECT/2.22.40.13 -
1538646967.544 187784 192.168.0.92 TCP_MISS/200 4474 CONNECT api.cc.skype.com:443 - HIER_DIRECT/52.114.74.3 -
1538646974.606 127089 192.168.0.92 TCP_MISS/200 4120 CONNECT mobile.pipe.aria.microsoft.com:443 - HIER_DIRECT/52.114.132.23 -
1538646980.719 141393 192.168.0.92 TCP_MISS/200 6391 CONNECT browser.pipe.aria.microsoft.com:443 - HIER_DIRECT/52.114.32.8 -
1538646981.941 3802 192.168.0.92 TCP_MISS/200 6479 CONNECT config.edge.skype.com:443 - HIER_DIRECT/13.107.3.128 -
1538646981.941 3803 192.168.0.92 TCP_MISS/200 56390 CONNECT config.edge.skype.com:443 - HIER_DIRECT/13.107.3.128 -
1538646984.413 123237 192.168.0.92 TCP_MISS/200 6939 CONNECT static.asm.skype.com:443 - HIER_DIRECT/52.178.207.179 -
1538646991.943 1244 192.168.0.92 TCP_MISS/200 6120 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538647001.945 1013 192.168.0.92 TCP_MISS/200 6041 CONNECT api.mcr.skype.com:443 - HIER_DIRECT/13.94.112.175 -
1538647006.946 1021 192.168.0.92 TCP_MISS/200 5793 CONNECT api.aps.skype.com:443 - HIER_DIRECT/52.174.161.147 -
1538647031.949 4909 192.168.0.92 TCP_MISS/200 6122 CONNECT client-s.gateway.messenger.live.com:443 - HIER_DIRECT/40.67.252.61 -
1538647036.950 1295 192.168.0.92 TCP_MISS/200 6406 CONNECT static.asm.skype.com:443 - HIER_DIRECT/52.178.207.179 -
1538647036.950 843 192.168.0.92 TCP_MISS/200 9736 CONNECT static-asm.secure.skypeassets.com:443 - HIER_DIRECT/68.232.34.200 -
acl allsrc src all
acl SSL_ports port 443
acl SSL_ports port 563
acl SSL_ports port 8000
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl purge method PURGE
acl CONNECT method CONNECT
acl HTTP proto HTTP
acl HTTPS proto HTTPS
acl allowed_subnets src 192.168.0.0/24 192.168.4.0/24 192.168.5.0/24 192.168.101.0/24 192.168.102.0/24 192.168.103.0/24 172.30.0.0/24 192.168.7.0/24 192.168.9.0/24 192.168.6.0/24
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access allow Safe_ports
http_access deny purge
http_access allow localhost
redirect_program /usr/bin/squidGuard -c /etc/squidguard/squidGuard.conf
redirector_bypass on
url_rewrite_children 7
http_access allow allowed_subnets
http_access deny allsrc