Lol, bingo, mersi :)
> On May 18, 2015, at 1:12 PM, Cristian Marin <cma...@adobe.com> wrote: > > Problema ta nu este legata de semnul exclamarii ci de faptul ca nu specifici > ca acel character care urmeaza dupa inceputul de linie s-ar putea sa apara de > mai multe ori. Incearca cu > > # mailq | grep "^[0-9,A-F]\+\!" > > Cristic > > > あなたのコードを確保する! > > -----Original Message----- > From: rlug-boun...@lists.lug.ro [mailto:rlug-boun...@lists.lug.ro] On Behalf > Of Mircea MITU > Sent: Monday, May 18, 2015 13:09 > To: Romanian Linux Users Group > Subject: [rlug] Regex dupa ! > > Salut > > incerc sa fac un regex grep dupa un string ce contine ! la finalul unui > cuvant si observ ca nu stiu cum sa specific in regex (in bash) semnul ! > > > Incerc asa: > > # mailq | grep "^[0-9,A-F]!" > -bash: !": event not found (logic) > > # mailq | grep "^[0-9,A-F]\!" > pauza - nimic > > Stringurile cautate sunt de forma > 1EE2C5E8E37! 1801 Sun May 17 17:05:51 xyz > si pe mine ma intereseaza primul cuvant, id-ul cu ! la final. Cum escapez ! > in regex dintr-o expresie data in bash? > > Multumesc > _______________________________________________ > RLUG mailing list > RLUG@lists.lug.ro > http://lists.lug.ro/mailman/listinfo/rlug > _______________________________________________ > RLUG mailing list > RLUG@lists.lug.ro > http://lists.lug.ro/mailman/listinfo/rlug _______________________________________________ RLUG mailing list RLUG@lists.lug.ro http://lists.lug.ro/mailman/listinfo/rlug