From: "Vadim V. Zhytnikov" <vvzhy@netorn.ru> To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org> Subject: [sisyphus] Помогите избавться от bashisma Date: Sat, 02 Dec 2006 00:16:38 +0300 Message-ID: <45709BB6.1080102@netorn.ru> (raw) Есть простя задачка. Из набора *.texi файлов выделить те, которые (1) содержат символы табуляции (2) имеют строки с DOS-овскими окончаниями строк Для этого я использовал следующие команды bad_files1=`find . -name '*.texi' -print | xargs grep -l $'\t'` bad_files2=`find . -name '*.texi' -print | xargs grep -l $'\x0D$'` Но выяснилось, что конструкции вида $'\t' и $'\x0D$' , повидимому, являются bash-специфичными и скрипт не срабатывает. Например они точно не работают в стандартном шелле на Солярке. В bash на той же самой Солярке всё срабатывает замечательно. Ну и собственно вопрос - чем можно заменить этот bashism, чтобы сделать скрипт переноносимым? -- Vadim V. Zhytnikov <vvzhy@mail.ru> <vvzhy@netorn.ru>
next reply other threads:[~2006-12-01 21:16 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-12-01 21:16 Vadim V. Zhytnikov [this message] 2006-12-02 6:10 ` Ildar Mulyukov 2006-12-02 7:14 ` Vadim V. Zhytnikov 2006-12-02 6:35 ` Вадим Илларионов 2006-12-02 7:09 ` Vadim V. Zhytnikov 2006-12-02 12:27 ` Yura Kalinichenko 2006-12-02 16:12 ` Vadim V. Zhytnikov 2006-12-03 11:38 ` Fr. Br. George 2006-12-03 12:03 ` Vadim V. Zhytnikov
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=45709BB6.1080102@netorn.ru \ --to=vvzhy@netorn.ru \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git