/l3/users/20-10-2014/NT-Ladm/debian1.net.nt/root :1 :2 :3 :4 |
|
#tail -20 user
From root@based-debian.net.nt Wed Oct 22 15:52:06 2014 Return-path: <root@based-debian.net.nt> Envelope-to: user@based-debian.net.nt Delivery-date: Wed, 22 Oct 2014 15:52:06 +0300 Received: from root by debian1.net.nt with local (Exim 4.80) (envelope-from <root@based-debian.net.nt>) id 1XgvOY-0003UM-59 for user@based-debian.net.nt; Wed, 22 Oct 2014 15:52:06 +0300 Date: Wed, 22 Oct 2014 15:52:06 +0300 To: user@based-debian.net.nt Subject: Privet user User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <E1XgvOY-0003UM-59@debian1.net.nt> From: root <root@based-debian.net.nt> privet |
#cd
|
#cat hello.sh
#!/bin/bash for c_user in $* do echo privet | mail -s "Privet $c_user" $c_user done |
#test -d 1
![]() |
#test -d d1
![]() |
#echo $?
1 |
#ls
hello.sh install ip i_p passwd source Tux.jpg wget.txt words xargs.txt |
#ls -a
. .aptitude .bash_profile hello.sh ip .l3rc .lilalo passwd source .vim .vimrc words .. .bash_history .bashrc install i_p .lesshst .links2 .profile Tux.jpg .viminfo wget.txt xargs.txt |
#test i_p
|
#echo $?
0 |
#test -d i_p
![]() |
#echo $?
1 |
#[ -d i_p ]
![]() |
#echo $?
1 |
#[ i_p ]
|
#echo $?
0 |
#cp no_file /tmp
![]() cp: не удалось выполнить stat для «no_file»: Нет такого файла или каталога |
#echo $?
1 |
#touch no_file
|
#cp no_file /tmp/
|
#echo$?
![]() l3script: echo0: команда не найдена |
#echo $?
127 |
#cp no_file /tmp/test 5 -gt 1
![]() cp: неверный ключ -- g Попробуйте «cp --help» для получения более подробного описания. |
#test 5 -gt 1
|
#test 5 -lt 1
![]() |
#echo $?
1 |
#test -z "$STRING"
|
#echo $?
0 |
#test "$P" !=print
![]() l3script: test: : ожидается использование унарного оператора |
#test -e /etc/motd
|
|