Re: [SLUG] quoting

From: Bill Glidden (bill@thegliddenfamily.com)
Date: Fri Dec 16 2005 - 16:55:25 EST


On 12/16/05 4:07 PM, "Eben King" <eben1@tampabay.rr.com> wrote:

> OK, I'l having a quoting problem. Not people taking things out of context,
> or using quotes without attribution, shell quoting. What I want is the "du
> -sh"-style output, only sorted by size. The only way I can see to do that
> is to get the "du -s"-style output, sort it, trim off the size, and call "du
> -sh' on each one. Rather inefficient, but I don't see a better way.
> (Sorting "du -sh"'s output will put "100M" before "200K".)
>
..snip..

> What am I doing wrong, and what's the right way to do it? Thanks.

Have you tried

PP='cut -f 2- -d " "'

echo "some stuff" | eval $PP

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:56:33 EDT