From: "Neil Holmes" <neil.holmes@zoom.co.uk>
To: jb1@btstream.com
Cc: Linux 8086 <linux-8086@vger.kernel.org>
Subject: RE: ash and String Manipulation
Date: Tue, 7 Jan 2003 11:02:30 -0000 [thread overview]
Message-ID: <DDENIOHFNLNMCGGDFDPCCELGCJAA.neil.holmes@zoom.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.33.0301070153400.6617-100000@olympus.btstream.com>
I have replaced much of the "toy" code now with a c program.
Thanks for the tip though.
Neil
-----Original Message-----
From: jb1@btstream.com [mailto:jb1@btstream.com]
Sent: 07 January 2003 11:04
To: Neil Holmes
Cc: Linux 8086
Subject: RE: ash and String Manipulation
On Mon, 6 Jan 2003, Neil Holmes wrote:
> Thanks for this. I am now working on alternative ways.
>
> Looks like I am having to flex my not-so-advanced 'C' skills ! Its going
> well though.
I'm sure your example was just a "toy", but maybe you can simply use
"sed" to substitute a spaces for each commas, e.g.:
echo "advent,Text Adventure Game,advent.tar" | sed 's/,/ /g'
I've hardly used the command at all, but I know it's a great deal more
flexible (and cryptic!) than the example above implies. Unfortunately, the
man and info pages are insufficient, but I've collected some more useful
documentation. Let me know if you want that information.
ELKS doesn't seem to have "sed", but should (hint, hint). There's a
message in the archives at http://linmodems.org from Jeff Chua dated Thu,
2 Jan 2003 08:35:50 +0800 (SGT) in which he has identical text
substitutions using "sed" and "ex". The "vi" in my RedHat 7.0 is actually
"vim" and has a command-line switch, "-e", that's supposed to start it in
"ex" mode. ELKS has "vi", but it doesn't recognize the "-e" switch; maybe
it would be easier to add that function than to convert "sed" for ELKS.
next prev parent reply other threads:[~2003-01-07 11:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-03 21:24 ash and String Manipulation Neil Holmes
2003-01-04 9:50 ` jb1
2003-01-06 11:12 ` Neil Holmes
2003-01-07 11:04 ` jb1
2003-01-07 11:02 ` Neil Holmes [this message]
2003-01-07 12:42 ` Alan Cox
2003-01-07 12:12 ` Al Riddoch
2003-01-07 12:52 ` Paul Nasrat
2003-01-07 13:57 ` Al Riddoch
2003-01-09 9:37 ` sed-1.3 problems [WAS: Re: ash and String Manipulation] jb1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DDENIOHFNLNMCGGDFDPCCELGCJAA.neil.holmes@zoom.co.uk \
--to=neil.holmes@zoom.co.uk \
--cc=jb1@btstream.com \
--cc=linux-8086@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox