--089e015375b0e625d004efb7c68e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You are evil :) Thank you dude! On 11 January 2014 21:34, Ivan =C4=8Cuki=C4=87 wrote= : > You are evil :) Thank you dude! > > > On 11 January 2014 17:04, Thiago Macieira wrote: > >> On s=C3=A1bado, 11 de janeiro de 2014 11:38:25, Ivan =C4=8Cuki=C4=87 wro= te: >> > function _ksrccomp() { >> > reply=3D(`grep identifier kde_projects.xml | sed 's/^[^"]*"//' | sed >> > 's/".*//' | sort -u`) >> > } >> >> Replace the grep and two sed with just one sed: >> >> reply=3D(`sed -n 's/.*identifier=3D"\(.*\)".*/\1/p' kde_projects.xml = | >> sort -u`) >> >> You can also use zsh expansion modifiers "o" and "u" to sort and uniquif= y: >> >> reply=3D(`sed -n 's/.*identifier=3D"\(.*\)".*/\1/p' kde_projects.xml= `) >> reply=3D(${(ou)reply}) >> >> If you want to go further, you can replace the sed with a while read :-) >> >> -- >> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org >> Software Architect - Intel Open Source Technology Center >> PGP/GPG: 0x6EF45358; fingerprint: >> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 >> > > > > -- > While you were hanging yourself on someone else's words > Dying to believe in what you heard > I was staring straight into the shining sun > --=20 Cheerio, Ivan -- While you were hanging yourself on someone else's words Dying to believe in what you heard I was staring straight into the shining sun --089e015375b0e625d004efb7c68e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You are evil :) Thank you dude!


On 11 January 2014 21:34, Ivan =C4= =8Cuki=C4=87 <ivan.cukic@gmail.com> wrote:
You are evil :) Thank you d= ude!


On 11 January 2014 17:04, Thiago Macieira <thiago@kde.org> wrot= e:
On s=C3=A1bado, 11 de janeiro de 2014 1= 1:38:25, Ivan =C4=8Cuki=C4=87 wrote:
> function _ksrccomp() {
> =C2=A0 reply=3D(`grep identifier kde_projects.xml | sed 's/^[^&quo= t;]*"//' | sed
> 's/".*//' | sort -u`)
> }

Replace the grep and two sed with just one sed:

=C2=A0 =C2=A0reply=3D(`sed -n 's/.*identifier=3D"\(.*\)".*/\1= /p' kde_projects.xml | sort -u`)

You can also use zsh expansion modifiers "o" and "u" to= sort and uniquify:

=C2=A0 =C2=A0 reply=3D(`sed -n 's/.*identifier=3D"\(.*\)".*/\= 1/p' kde_projects.xml`)
=C2=A0 =C2=A0 reply=3D(${(ou)reply})

If you want to go further, you can replace the sed with a while read :-)
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center
=C2=A0 =C2=A0 =C2=A0 PGP/GPG: 0x6EF45358; fingerprint:
=C2=A0 =C2=A0 =C2=A0 E067 918B B660 DBD1 105C =C2=A0966C 33F5 F005 6EF4 535= 8



--
While you were hanging yourself on someone else's = words
Dying to believe in what you heard
I was staring straight into = the shining sun



--
Cheerio,
Ivan
--
While you were hanging yourself on someone else's words
Dying= to believe in what you heard
I was staring straight into the shining su= n --089e015375b0e625d004efb7c68e--