Newsgroups: comp.unix.shell
From: Ed Morton <mortons...@gmail.com>
Date: Tue, 18 Sep 2012 10:36:48 -0500
Local: Tues, Sep 18 2012 11:36 am
Subject: Re: Pattern matching within ,, and ^^ parser
On 9/18/2012 10:15 AM, Thomas 'PointedEars' Lahn wrote:
> Ed Morton wrote:
Now who's projecting?
<snip> >> Also, the OP specifically posted that the awk script solved his problem >> (see below) so I think that's a pretty good indication that i did >> understand it. > No, it is pretty good indication that the OP thought that, as you were
At the end of the day - no-one has posted a solution using just shell builtins. >> Here's exactly what I said in the posts I think you're referring to:
THAT'S what you're whining about? That I used a file to contain the input rather >> #On 9/11/2012 12:28 PM, Ed Morton wrote:
> So they have a string value in a sh-based shell (which, as it turned out, is
> | I'd want to turn every first character, and every non-blank character
> A plain and simple problem. From which in your solution, out of thin air,
>> # $ cat file
than a here document or a pipe or just passing a string to the awk script??? I assumed the OP wasn't pulling strings out of thin air or hard-coding them into his script otherwise it'd be a pretty pointless exercise. If that had been any kind of issue it's obviously trivial to use some other way of inputting the string to the awk script. > … that you can process with awk then, of course:
Again, please post the better solution.
>> # $ cat tst.awk
>> #On 9/13/2012 2:02 AM, Carlo Zanziba wrote:
> Of course it works in certain situations. Nobody doubted that. The problem
<further pointless ramblings snipped>
> BTW: Trim your quotes to the relevant minimum next time, please.
Done. Look, if you think a shell-builtin-only solution is appropriate to solve the OPs problem then just post it so we can compare or stop whining about the awk solution. Ed.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||