* [Comm] скрипт
@ 2003-08-05 9:15 Роман Тутов
2003-08-05 10:46 ` [Comm] скрипт Alexey Tourbin
0 siblings, 1 reply; 5+ messages in thread
From: Роман Тутов @ 2003-08-05 9:15 UTC (permalink / raw)
To: community
Доброе утро (вечер/ночь)
#!/bin/sh
USER="tutov"
FROMLOG="/mount/squidlog/access.log"
cat $FROMLOG | awk -F " " '$8!="-" {print awk strftime("%Y-%m-%d %H:%M:%S",$1) " " $8 " " $7 " " $2 }' | gr
Фрагмент скрипта . Возможно-ли ему передать с коммандной строки
параметр ? Если можн то как ?
--
С уважением Тутов Роман
Отдел АСУП
mailto:tutov@empils.ru
Origin: В авиации не пьет лишь один автопилот, но и он на спиpтy pаботает :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Comm] Re: скрипт
2003-08-05 9:15 [Comm] скрипт Роман Тутов
@ 2003-08-05 10:46 ` Alexey Tourbin
2003-08-05 12:21 ` Роман Тутов
0 siblings, 1 reply; 5+ messages in thread
From: Alexey Tourbin @ 2003-08-05 10:46 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
On Tue, Aug 05, 2003 at 01:15:22PM +0400, Роман Тутов wrote:
> #!/bin/sh
> USER="tutov"
> FROMLOG="/mount/squidlog/access.log"
> cat $FROMLOG | awk -F " " '$8!="-" {print awk strftime("%Y-%m-%d %H:%M:%S",$1) " " $8 " " $7 " " $2 }' | gr
>
> Фрагмент скрипта . Возможно-ли ему передать с коммандной строки
> параметр ? Если можн то как ?
Можно. :)
man shift
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Re: скрипт
2003-08-05 10:46 ` [Comm] скрипт Alexey Tourbin
@ 2003-08-05 12:21 ` Роман Тутов
2003-08-05 12:38 ` Alexey Tourbin
0 siblings, 1 reply; 5+ messages in thread
From: Роман Тутов @ 2003-08-05 12:21 UTC (permalink / raw)
To: Alexey Tourbin
Добрый день Alexey Tourbin
5 августа 2003 г. в 14:46 вы мне писали на тему
" [Comm] Re: скрипт "
AT> Можно. :)
AT> man shift
Откровенно говоря я в этом мане не бельмеса не понял .
может у кого он есть на русском языке ?
--
С уважением Тутов Роман
Отдел АСУП
mailto:tutov@empils.ru
Origin: "Сон это наpкотик от котоpого мы каждое yтpо отказываемся..."
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Comm] Re: скрипт
2003-08-05 12:21 ` Роман Тутов
@ 2003-08-05 12:38 ` Alexey Tourbin
2003-08-05 21:14 ` artem
0 siblings, 1 reply; 5+ messages in thread
From: Alexey Tourbin @ 2003-08-05 12:38 UTC (permalink / raw)
To: Alexey Tourbin
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
On Tue, Aug 05, 2003 at 04:21:08PM +0400, Роман Тутов wrote:
> AT> Можно. :)
> AT> man shift
> Откровенно говоря я в этом мане не бельмеса не понял .
> может у кого он есть на русском языке ?
Плохо читали. Попробуйте ещё раз:
$ man shift
/^ *shift
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Re: скрипт
2003-08-05 12:38 ` Alexey Tourbin
@ 2003-08-05 21:14 ` artem
0 siblings, 0 replies; 5+ messages in thread
From: artem @ 2003-08-05 21:14 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 414 bytes --]
>
> $ man shift
> /^ *shift
>
ха, а у меня эта комана выдает список встренных команд баша, а о самой
команде раскзывает help shift. там всего три строчки:
shift: shift [n]
The positional parameters from $N+1 ... are renamed to $1 ... If N
is not given, it is assumed to be 1.
сдвигает переданные параметры. $1 $2 $3 переводит в $2 $3
--
С уважением, Артем (art@fpm.kubsu.ru)
[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-08-05 21:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-05 9:15 [Comm] скрипт Роман Тутов
2003-08-05 10:46 ` [Comm] скрипт Alexey Tourbin
2003-08-05 12:21 ` Роман Тутов
2003-08-05 12:38 ` Alexey Tourbin
2003-08-05 21:14 ` artem
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git