From: Bit Twister on
On Tue, 23 Mar 2010 01:06:44 +0100, J G Miller wrote:
>
> This is a Usenet news group.

More correctly, comp.unix.shell would be the Usenet group to ask
scripting questions. :)


> Are you not able to use e-mail for personal messages

Heheheh, If you were to ping my email domain seen in the header you
would have the answer to that question.

> and software support?

That would be a good point when posting in comp.unix.shell.

Ohmster will need to post what he tried and show the results of the
command that failed. Not just show script and output. :(

Just asking for code to do his job will pretty much get him into
subject matter expert's kill files.
From: Bit Twister on
On Mon, 22 Mar 2010 20:47:51 -0500, Ohmster wrote:

>
> Guys, is it me or is there anything in here that someone can spot that
> would cause a double </A> tag in the generated urls like I am getting?

Ask yourself, are there any </A> tags in the script?
What happens if I remove them?

> My
> problem is that this, IMHO, is great stuff but I am not educated or
> experienced enough to manipulate it as of yet, or at least not very much.

Well, it is not that hard of a script to figure out when you
understand the commands.

set -- $_line <=== breaks the line down into command line arguments.
if you were to do a
man shift
you would get a hint as to look next. Then doing a
man bash
and using the search command
/shift \
you would understand what that does.

>
> I would love to get that ".url" out of the link name too.

That would be either a "Strip shortest match of $substring from back of $string"
seen in http://www.tldp.org/LDP/abs/html/refcards.html#AEN22102 under
Table B-5. String Operations

Or maybe you need location and use other substring operations to tear
out the offending character string.


> Bit Twister, anybody? Understand this script enough to figure out what is
> making the extra close address tag and how to clean that ".url" out of the
> link name?

Do read the "Meaning" section of
http://www.tldp.org/LDP/abs/html/refcards.html#AEN22102
From: Bit Twister on
On Tue, 23 Mar 2010 02:18:35 +0000 (UTC), Bit Twister wrote:
> On Mon, 22 Mar 2010 20:47:51 -0500, Ohmster wrote:
> if you were to do a
> man shift
> you would get a hint as to look next. Then doing a
> man bash
> and using the search command
> /shift \
> you would understand what that does.

Dang, search command should have been
/shift \[
From: Ohmster on
Bit Twister <BitTwister(a)mouse-potato.com> wrote in
news:slrnhqg8fe.g9h.BitTwister(a)cooker.home.test:

> On Tue, 23 Mar 2010 01:06:44 +0100, J G Miller wrote:
>>
>> This is a Usenet news group.
>
> More correctly, comp.unix.shell would be the Usenet group to ask
> scripting questions. :)

Agreed. I have it in my subscribed list. Do you frequent the newsgroup?
Might be best to move the discussion there, depends on if this will be a
quick matter or not. I will read your next message and make that
determination.

>> Are you not able to use e-mail for personal messages
>
> Heheheh, If you were to ping my email domain seen in the header you
> would have the answer to that question.

Probably fake, let's see...

[ohmster(a)ohmster scripts]$ ping mouse-potato.com
PING mouse-potato.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.148 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.138 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.130 ms

....what? localhost? How did you do that?

[ohmster(a)ohmster scripts]$ ping yahoo.com
PING yahoo.com (69.147.125.65) 56(84) bytes of data.
64 bytes from ir1.fp.vip.re1.yahoo.com (69.147.125.65): icmp_seq=1 ttl=47
time=61.4 ms
64 bytes from ir1.fp.vip.re1.yahoo.com (69.147.125.65): icmp_seq=2 ttl=47
time=42.1 ms
64 bytes from ir1.fp.vip.re1.yahoo.com (69.147.125.65): icmp_seq=3 ttl=47
time=42.3 ms

....must be some inside linux joke, lemmie do that mouse-potato thing from
an MS CLI...

C:\Users\Paul>ping mouse-potato.com

Pinging mouse-potato.com [127.0.0.1] with 32 byt
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Got me on that one. Inside computer joke I would say. Maybe a throwback
"from the old days of programming" or something. Good one though. :)

>> and software support?
>
> That would be a good point when posting in comp.unix.shell.
>
> Ohmster will need to post what he tried and show the results of the
> command that failed. Not just show script and output. :(
>
> Just asking for code to do his job will pretty much get him into
> subject matter expert's kill files.

Yes it will. I was afraid someone would mistake me for a school kid
trying to get his homework done for free but at least you know me and
gave me a real answer. John and Michel did too, thanks guys.

--
~Ohmster | ohmster59 /a/t/ gmail dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
From: Bit Twister on
On Mon, 22 Mar 2010 21:26:37 -0500, Ohmster wrote:
>
> ...must be some inside linux joke,

No, just a feature of how the Internet works.

> lemmie do that mouse-potato thing from
> an MS CLI...
>
> C:\Users\Paul>ping mouse-potato.com
>
> Pinging mouse-potato.com [127.0.0.1] with 32 byt
> Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
>
> Got me on that one. Inside computer joke I would say. Maybe a throwback
> "from the old days of programming" or something. Good one though. :)

No, mouse-potato.com is a registered domain. Not by me by the way.
Do a

whois mouse-potato.com