[pca] yet another sunsolve today's (31.5.2010) hang up?

dpecka dpecka at techniservit.cz
Wed Jun 2 11:44:46 CEST 2010


On Wed, 2010-06-02 at 11:19 +0200, dpecka wrote:
> the usage could be as follows:
> 
> --asort %{key} :ascending sort by key
> --dsort %{key} :descending sort by key
> --esort "{$sort_expression},%{key}" :perl sort() expressions including
> brackets {} and coma separated  %{key}
> 
> example:
> 
> -Hl total  --{a,d}sort "%a" --format="%p-%c %y"
> 
> regards martin, daniel
> 

ps. regardly to my suggestion and example above i have in my own patch
checking script the code like this (modified):

pca -Hl total --format="%a %p-%c %y" | perl -e '
push @foo, $_ while(<>);
do { s/^\s*\d+\s+//; print; } foreach sort {$a <=> $b} @foo;'

^^ this would work same as in my example ..

regards, daniel

-- 
Best Regards / S Pozdravem

Daniel Pecka
--------------------------------------------------
SunOS Specialist, IT Administrator

www.techniservit.cz

mailto:<dpecka at techniservit.cz>
callto:<+0420603166533>




More information about the pca mailing list