From: "Михаил Шувалов" <shuvalov.mv@gmail.com>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] gs и непичатные символы [JT]
Date: Tue, 5 Aug 2008 10:08:06 +0400
Message-ID: <a5a6a8800808042308l5db795b9r139677a5ab518a1e@mail.gmail.com> (raw)
In-Reply-To: <200808042151.01489.shuvalov.mv@gmail.com>
4 августа 2008 г. 21:50 пользователь Mike Shuvalov написал:
> В сообщении от Monday 04 August 2008 21:37:35 Владимир Гусев написал(а):
>> > А по существу вопроса?
>>
>> А по существу рискнуть повесить баг на gs, подтвердив свои слова
>> прилагаемыми скриптом, текстом и подробным пошаговым описанием
>> действа. Раз никто не отзывается из знатоков... Сможете?
>
> Ну неотзывчивость знатоков списываю на лето, время отпусков...
> Для начала попробую завтра выложить сюда скрипт, благо он маленький, а там
> посмотрим (скрипт на работе). Все таки первый мой более или мене серьезный
> скрипт. Может кто что подскажет (хоть это и не devl@). Хотя вот сейчас пришла
> мысль проверять помещаемую в текстовый файл строку на непечатаемые (кажется
> правильно написал :) ) символы.
>
Как и собирался, выкладываю скрипт (точнее два):
[mike@to-18 checkamk]$ cat ./getallreestrs
#!/bin/sh
./mklctdb
CR='\015'
for i in txtfiles/*.txt
do
tmpfile=`mktemp`
tr -d $CR < $i > $tmpfile
for j in `cut "$tmpfile" -d'|' -f3`
do
if [ ! `locate -d amk $j` ]
then echo $j>>notreestr.txt
fi
done
rm -f $tmpfile
done
if [ ! -f ./notreestr.txt ]
then echo "Нет отсутствующих реестров.">notreestr.txt
fi
kate ./notreestr.txt
rm -f ./notreestr.txt
[mike@to-18 checkamk]$ cat ./mklctdb
#!/bin/sh
#
# Скрипт построения базы файлов реестров полученных из АМК
#
YEAR=2008
BASEPATH=/mnt/SERVER/pub/tsr/reestr/AMK/
if [ $UID ]
then su - -c "/usr/sbin/mklocatedb --searchpaths=$BASEPATH$YEAR/
--output /home/RcvReestr/checkamk/amk"
else /usr/sbin/mklocatedb --searchpaths=$BASEPATH$YEAR/ --output
/home/RcvReestr/checkamk/amk
fi
--
С уважением,
Михаил Шувалов
prev parent reply other threads:[~2008-08-05 6:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 14:49 [Comm] gs и непичатные символы Михаил Шувалов
2008-08-04 16:11 ` [Comm] gs и непичатные символы [JT] Владимир Гусев
2008-08-04 17:22 ` Mike Shuvalov
2008-08-04 17:37 ` Владимир Гусев
2008-08-04 17:38 ` Владимир Гусев
2008-08-04 17:53 ` Mike Shuvalov
2008-08-04 17:50 ` Mike Shuvalov
2008-08-05 6:08 ` Михаил Шувалов [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5a6a8800808042308l5db795b9r139677a5ab518a1e@mail.gmail.com \
--to=shuvalov.mv@gmail.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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