Re: [gentoo-user] sed/awk question

2011-11-21 Thread Pandu Poluan
On Tue, Nov 22, 2011 at 10:26, Adam Carter wrote: >>> sed -r -e 's/(.*)-[0-9].*/\1/' >> >> You know, that looks familiar... are you trying to get a package name from >> the list of eix-installed? :-) > > No - its non-gentoo. In this case it hasn't worked > > $ echo net-snmp-5.3.2.2-5.cp843034001.i

Re: [gentoo-user] sed/awk question

2011-11-21 Thread Adam Carter
> I'd use sed and the regex "-[0-9]" to delimit the field > > > foo=`echo '123--bad-2xyz-3--' | sed -r -e "s/-[0-9].*//"` > echo $foo > 123--bad > > > Helpful? Perfect - thanks!

Re: [gentoo-user] sed/awk question

2011-11-21 Thread Benjamin Lee
On 11/21/2011 06:52 PM, Adam Carter wrote: > Hi All, > > I need to cut a string, which happens to be a filename, using the > first dash that's followed by a numeral, so cut -f 1 -d"-" fails if > the filename has an extra dash. How do i do this? Here's a Bourne parameter expansion: blee@eclipse ~

Re: [gentoo-user] sed/awk question

2011-11-21 Thread Joseph Davis
Oh, and you can get the other end next by foo2=`echo '123--bad-2xyz-3--' | sed -r -e "s/$foo//"` echo $foo2 -2xyz-3-- Joseph Davis wrote: I'd use sed and the regex "-[0-9]" to delimit the field foo=`echo '123--bad-2xyz-3--' | sed -r -e "s/-[0-9].*//"` echo $foo 123--bad Helpful? Adam Cart

Re: [gentoo-user] sed/awk question

2011-11-21 Thread Joseph Davis
I'd use sed and the regex "-[0-9]" to delimit the field foo=`echo '123--bad-2xyz-3--' | sed -r -e "s/-[0-9].*//"` echo $foo 123--bad Helpful? Adam Carter wrote: Hi All, I need to cut a string, which happens to be a filename, using the first dash that's followed by a numeral, so cut -f 1 -d"

Re: [gentoo-user] sed/awk question

2011-11-21 Thread Adam Carter
>> sed -r -e 's/(.*)-[0-9].*/\1/' > > You know, that looks familiar... are you trying to get a package name from > the list of eix-installed? :-) No - its non-gentoo. In this case it hasn't worked $ echo net-snmp-5.3.2.2-5.cp843034001.i386.rpm | sed -r -e 's/(.*)-[0-9].*/\1/' net-snmp-5.3.2.2

[gentoo-user] sed/awk question

2011-11-21 Thread Adam Carter
Hi All, I need to cut a string, which happens to be a filename, using the first dash that's followed by a numeral, so cut -f 1 -d"-" fails if the filename has an extra dash. How do i do this?

Re: [gentoo-user] I'm getting this error when I log into PHPMYADMIN (/htdocs/phpmyadmin/libraries/Error.class.php on line 179)

2011-11-21 Thread Carlos Sura
On 21 November 2011 00:49, Mick wrote: > On Monday 21 Nov 2011 02:53:20 Michael Mol wrote: > > Check php.net for docs around error handling, specifically where to send > > errors (you want it going to a log file, not the web browser), and what > > severity of error to stop the script at; normally

Re: [gentoo-user] Vim stops installing when it runs installman.sh

2011-11-21 Thread Dale
James Broadhead wrote: Finally: You probably don't need the MAKEOPTS flag at all - try updating vim without it. ( `emerge -u vim` ) That about covers it ;) And don't forget the -1 or --oneshot option either. Dale :-) :-) -- I am only responsible for what I said ... Not for what you und

Re: [gentoo-user] Vim stops installing when it runs installman.sh

2011-11-21 Thread James Broadhead
On 21 November 2011 15:00, 1990 dqgcs wrote: > Hi Mick > Here is my output ,Thanks for help!!! > > *** > > .-(~)-(ayu@Freedom > )- > `-->

Re: [gentoo-user] Re: Re: Re: Another hardware thread

2011-11-21 Thread Stefan G. Weichinger
Am 2011-11-21 09:45, schrieb Stefan G. Weichinger: > Am 18.11.2011 10:46, schrieb Stefan G. Weichinger: >> hardware order planned for next week maybe. > > Right now I consider simply skipping the "K"-CPU and get some pre-built > system w/ full guarantee and stuff (even the K-CPU is outdated soon,

[gentoo-user] Re: Can't get racoon IPSec going on the client machine

2011-11-21 Thread Mick
On 20 November 2011 16:06, Mick wrote: > Hi All, > > I have been trying for some time now to set up a road warrior VPN client so > that I can connect to my home router and administer machines on the LAN. > > However, my understanding of IPSec is poor and consequently my configuration > of > racoo

[gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 2

2011-11-21 Thread waltdnes
Based on feedback, I've changed step 6, to get a modified ebuild for virtual/dev-manager to properly check for busybox with the "mdev" USE flag. Steps 1-through-5 are unchanged. The usual warnings apply... * this is a beta * use a spare test machine * if you don't follow the instructions corr

Re: [gentoo-user] Progress on s/udev/mdev/

2011-11-21 Thread Pandu Poluan
On Mon, Nov 21, 2011 at 17:22, wrote: > On Sat, Nov 19, 2011 at 09:53:50PM -0600, Dale wrote > >> Question:  Is this going to be added to the shiney new Gentoo wiki at >> some point?  The wiki needs some more content for sure.  ;-) >> >> I didn't know if ya'll had thought of this before or not. >

Re: [gentoo-user] Progress on s/udev/mdev/

2011-11-21 Thread waltdnes
On Sat, Nov 19, 2011 at 09:53:50PM -0600, Dale wrote > Question: Is this going to be added to the shiney new Gentoo wiki at > some point? The wiki needs some more content for sure. ;-) > > I didn't know if ya'll had thought of this before or not. Actually, I was hoping to convince the devs

[gentoo-user] Re: [SOLVED] Help; ISO8859-1 fonts not being installed

2011-11-21 Thread waltdnes
On Sun, Nov 20, 2011 at 03:57:02PM -0500, waltd...@waltdnes.org wrote > When I emerge font-misc-misc, ISO8859-1 fonts do not get built. See > attached build.log.gz. Note... > > > checking whether to build ISO8859-1 fonts... no ### What ?!?!?! > > checking whether to build ISO8859-2 fonts... no

Re: [gentoo-user] Re: Re: Re: Another hardware thread

2011-11-21 Thread Stefan G. Weichinger
Am 18.11.2011 10:46, schrieb Stefan G. Weichinger: > hardware order planned for next week maybe. Right now I consider simply skipping the "K"-CPU and get some pre-built system w/ full guarantee and stuff (even the K-CPU is outdated soon, and the "normal" i7-2600 is also much faster than my C2D-E66