On 10-04-2015 19:57, Ken Moffat wrote:
> second attempt - I keep forgetting that only my lfs address is
> subscribed to -book, but I probably ought to send this to -dev
> anyway, so I'll take the opportunity to change the subject.
>
> On Sat, Apr 04, 2015 at 06:27:12PM -0300, Fernando de Oliveira wrote:
>> On 04-04-2015 15:02, Chris Staub wrote:
>>> On 04/04/2015 01:43 PM, Chris Staub wrote:
>>>> On 04/04/2015 12:39 PM, [email protected] wrote:
>>>>> - translations/source| cut -d/ -f4 | uniq</command>.
>>>>> + translations/source| cut -d/ -f4 | uniq | sort</command> .
>>>>
>>>> I believe sort should be run before uniq, though it would likely be even
>>>> better to replace the whole "uniq | sort" construct with just "sort -u".
>>>
>>> Actually, this might be even better:
>>>
>>> tar -tf ../libreoffice-translations-4.4.2.2.tar.xz | awk -F/
>>> '/translations\/source/ {print $4}' | sort -u
>>
>> Thanks, Chris,
>>
>> Just the fact that two people learned the existence of that command,
>> introduced by Andy or Ken or someone else, today makes me feel that it
>> deserves to stay as is.
>>
> Just coming back to this, (wanting to confirm what happens with this
> new version if I continue to not install openldap, before I propose
> a slight rewording of the dep). Umm, I don't think it was me that
> came up with that command, and I had not previously noted it. But
> for me it does not work!
If it is for decreasing the number of recommended, it is very welcome, I
have already started doing as you told recently. This time I haven't
installed the red's and probably neither some others.
> I think there have been changes in recent coreutils, but maybe it
> was in tar itself. For the translations, the owner and group from
> tar -tf on LFS-7.7 show up as 'cloph/users' with a '/' dividing
> them.
$ porg coreutils tar
coreutils-8.23
tar-1.28
> For me, -f5 instead of -f4 is now needed. Does the current version
> still work for anybody on LFS-7.7 (I guess that it _might_
> conceivably be a new locale issue) ?
>
> ĸen
>
ĸen, they works for me:
tar -tf libreoffice-translations-4.4.2.2.tar.xz | \
awk -F/ '/translations\/source/ {print $4}' | \
third line
where
third line is any one of
sort -u
uniq | sort
sort | uniq
I've generated three identical files with 120 lines
$ head /tmp/libreoffice-translations-4.4.2.2-sort-uniq.log
ab
af
am
an
ar
as
ast
az
be
$ tail /tmp/libreoffice-translations-4.4.2.2-sort-uniq.log
ug
uk
ur
uz
ve
vi
xh
zh-CN
zh-TW
zu
--
[]s,
Fernando
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page