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
> 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!
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 ~
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
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"
>> 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
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?
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
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
On 21 November 2011 15:00, 1990 dqgcs wrote:
> Hi Mick
> Here is my output ,Thanks for help!!!
>
> ***
>
> .-(~)-(ayu@Freedom
> )-
> `-->
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,
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
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
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.
>
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
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
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
17 matches
Mail list logo