* [Comm] BASH, aliases? @ 2006-10-26 12:53 Дмитрий Ананьев 0 siblings, 1 reply; 6+ messages in thread From: Дмитрий Ананьев @ 2006-10-26 12:53 UTC (permalink / raw) To: ALT Linux Community Привет. Идея такая - надоело составлять огромные цепочки из grep и прочих, хотелось бы , чтобы " | grep " можно было заменить например на " G ". Есть возможность реализовать такое в bash? -- С уважением, Дмитрий Ананьев d.ananyev@gmail.com ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <99785b730610260604t41e6d12as8d806ddfb00d6949@mail.gmail.com>]
* Re: [Comm] BASH, aliases? @ 2006-10-26 13:19 ` Дмитрий Ананьев 2006-10-26 13:39 ` Alexey I. Froloff 0 siblings, 1 reply; 6+ messages in thread From: Дмитрий Ананьев @ 2006-10-26 13:19 UTC (permalink / raw) To: ALT Linux Community 26.10.06, Yury Konovalov<speccyfan@gmail.com> написал(а): > > > 26.10.06, Дмитрий Ананьев <d.ananyev@gmail.com> написал(а): > > Привет. > > > > Идея такая - надоело составлять огромные цепочки из grep и прочих, > > хотелось бы , чтобы " | grep " можно было заменить например на " G ". > > Есть возможность реализовать такое в bash? > > > > > Да, добавьте соответствующую запись в /etc/bashrc.d/alias.sh Не совсем понятно как это делать alias G='| grep' не работает так как я задумал. Хотелось бы получить в результате работающей такую строку например: #cat /var/log/messages G inet G -vi start G fix (#cat /var/log/messages | grep inet | grep -vi start | grep fix) -- С уважением, Дмитрий Ананьев d.ananyev@gmail.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] BASH, aliases? 2006-10-26 13:19 ` Дмитрий Ананьев @ 2006-10-26 13:39 ` Alexey I. Froloff 2006-10-26 13:43 ` Дмитрий Ананьев 0 siblings, 1 reply; 6+ messages in thread From: Alexey I. Froloff @ 2006-10-26 13:39 UTC (permalink / raw) To: ALT Linux Community [-- Attachment #1: Type: text/plain, Size: 462 bytes --] * Дмитрий Ананьев <d.ananyev@> [061026 17:22]: > Не совсем понятно как это делать > alias G='| grep' > не работает так как я задумал. Хотелось бы получить в результате > работающей такую строку например: > #cat /var/log/messages G inet G -vi start G fix apt-get install zsh -- Regards, Alexey I. Froloff AIF5-RIPN, AIF5-RIPE ------------------------------------------- Inform-Mobil, Ltd. System Administrator http://www.inform-mobil.ru/ [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] BASH, aliases? 2006-10-26 13:39 ` Alexey I. Froloff @ 2006-10-26 13:43 ` Дмитрий Ананьев 2006-10-26 20:29 ` Michael Shigorin 0 siblings, 1 reply; 6+ messages in thread From: Дмитрий Ананьев @ 2006-10-26 13:43 UTC (permalink / raw) To: ALT Linux Community > apt-get install zsh Спасибо! -- С уважением, Дмитрий Ананьев d.ananyev@gmail.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] BASH, aliases? 2006-10-26 13:43 ` Дмитрий Ананьев @ 2006-10-26 20:29 ` Michael Shigorin 2006-10-27 6:50 ` Дмитрий Ананьев 0 siblings, 1 reply; 6+ messages in thread From: Michael Shigorin @ 2006-10-26 20:29 UTC (permalink / raw) To: ALT Linux Community On Thu, Oct 26, 2006 at 05:43:22PM +0400, Дмитрий Ананьев wrote: > > apt-get install zsh > Спасибо! Тогда ещё apt-get install shadow-change chsh $USER /bin/zsh :) Тж. http://www.freesource.info/wiki/AltLinux/DotFiles/Shells/Zsh -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] BASH, aliases? 2006-10-26 20:29 ` Michael Shigorin @ 2006-10-27 6:50 ` Дмитрий Ананьев 0 siblings, 0 replies; 6+ messages in thread From: Дмитрий Ананьев @ 2006-10-27 6:50 UTC (permalink / raw) To: shigorin, ALT Linux Community > Тогда ещё > > apt-get install shadow-change > chsh $USER /bin/zsh > > :) > > Тж. http://www.freesource.info/wiki/AltLinux/DotFiles/Shells/Zsh > То что нужно! Спасибо! -- С уважением, Дмитрий Ананьев d.ananyev@gmail.com ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-10-27 6:50 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-10-26 12:53 [Comm] BASH, aliases? Дмитрий Ананьев 2006-10-26 13:19 ` Дмитрий Ананьев 2006-10-26 13:39 ` Alexey I. Froloff 2006-10-26 13:43 ` Дмитрий Ананьев 2006-10-26 20:29 ` Michael Shigorin 2006-10-27 6:50 ` Дмитрий Ананьев
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