Re: SED help needed.
On Fri, 15 Nov 1996, Christoph Lameter wrote:
> maor >perl -n000e 'print if /Provides:.* elf-x11r6/' /var/lib/dpkg/status
>
> I dont know what "000e" does (cannot see it described in the perlrun
> manpage) but the rest would just print one line and not
> the other information about a package
It's in there:
-0[digits]
specifies the record separator ($/) as an octal
number.
Guy's example works great.
--
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj # RSA-3-lines-perl
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 # Joey Hess
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/) # jeh22@cornell.edu
"How appropriate, you fight like a cow." - - Guybrush Threepwood
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: