On Thu, Jan 30, 2003 at 12:43:34PM +, Angus Leeming wrote:
> >> > y=${x%<*}
>
> y=`echo $x | cut -d '<' -f 1`
Semantically, yes.
Andre'
--
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
Michael Schmitt wrote:
> Angus Leeming wrote:
>
>>And MY point is that it did NOT work fine because I generated an
>>i18n.php3 page with multiple warning messages about uninitialised
>>variables.
>>
> There is no need to argue, Angus. I just wanted to point out that I
> would have fixed it by mys
Angus Leeming wrote:
And MY point is that it did NOT work fine because I generated an
i18n.php3 page with multiple warning messages about uninitialised
variables.
There is no need to argue, Angus. I just wanted to point out that I
would have fixed it by myself if you asked me. It is not my wa
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>> Note that cut/paste is a purely gnu thing AFAIK. Not very portable.
Angus> cut, paste, join are all on Tru64 4.0e. Quoting the man page:
Oops.
JMarc
Andre Poenitz wrote:
> On Thu, Jan 30, 2003 at 11:55:07AM +, Angus Leeming wrote:
>> > Concerning cheapness:
>> >
>> > y=${x%<*}
y=`echo $x | cut -d '<' -f 1`
>> > translator=${y#*}
translator=`echo $y | cut -d ' ' -f 2-`
>> > y=${x#*<}
y=`echo $x | cut -d '<' -f 2`
>> > email=${y%>*}
On Thu, Jan 30, 2003 at 11:55:07AM +, Angus Leeming wrote:
> > Concerning cheapness:
> >
> > y=${x%<*}
> > translator=${j#*}
> > y=${x#*<}
> > email=${y%>*}
>
> Never seen nothing like this. Can you explain it to me? It looks like
> gook to me ;-)
man bash
/##
${parameter#word}
Jean-Marc Lasgouttes wrote:
>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> Anyway, I have a reasonable working knowledge of sed and I'm
> Angus> trying to improve my feeling for cut, paste etc. I 'feel'
> that Angus> I will then be able 'do' sh-scripting with a reasonable
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Anyway, I have a reasonable working knowledge of sed and I'm
Angus> trying to improve my feeling for cut, paste etc. I 'feel' that
Angus> I will then be able 'do' sh-scripting with a reasonable level
Angus> of proficiency. Still don
Andre Poenitz wrote:
>> Point 2. Sometimes 'cut' is a better tool than 'sed'. I repectfully
>> submit that this:
>>
>>input=`grep "Last-Translator" $pofile` && {
>> # Remove 'Last-Translator: ' from the front of the string
>>input=`echo $input | sed 's/ */ /g' | cut -d ' ' -f 2-`
>> # The string
Michael Schmitt wrote:
> Angus Leeming wrote:
>
> >Let's move on to the actual process of extracting info from the
> >msgfmt
> run. It
> >is more interesting and was quite challenging. You put a lot of
> >effort
> into
> >it and I didn't mean to stand on your toes. If you feel hurt, I
> >ap
Angus Leeming wrote:
>Let's move on to the actual process of extracting info from the msgfmt
run. It
>is more interesting and was quite challenging. You put a lot of effort
into
>it and I didn't mean to stand on your toes. If you feel hurt, I apologise
>profusely.
>
That's not the point! I wante
On Wed, Jan 29, 2003 at 07:41:31PM +, Angus Leeming wrote:
> Point 1. The .* RE operator is EXTREMELY greedy. Try and avoid it if at all
> possible.
Indeed.
> Point 2. Sometimes 'cut' is a better tool than 'sed'. I repectfully submit
> that this:
>
> input=`grep "Last-Translator" $
On Wednesday 29 January 2003 6:47 pm, Michael Schmitt wrote:
> Hi Angus,
>
> > Rewrite postats.sh to:
> > 1. Not need the existence of a Makefile in order to run;
> > 2. Not result in php warnings about uninitialised variables if any of the
> > tra
Michael Schmitt <[EMAIL PROTECTED]> writes:
| The new code is _much_ longer. I prefer short and simple solutions as
| they can be maintained more easily. IMHO functions like "dump_tail"
| only introduce overhead.
I am not sure that I agree...
--
Lgb
Hi Angus,
Rewrite postats.sh to:
1. Not need the existence of a Makefile in order to run;
2. Not result in php warnings about uninitialised variables if any of the
translated, fuzzy or untranslated strings are missing.
Why did have to rewrite the script completely for the two reasons
Michael, I have applied your changes to de.po and to Makefile.in.in.
I have not applied your changes to postats.sh because I don't have
time to peruse both your and Lars' offerings and pull them together.
Perhaps you could incorporate Lars' suggestions into your script and
r
16 matches
Mail list logo