[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [gelöst]Re: /bin/sh: prüfen ob String1 "Wort" aus String2 enthält



Michael Lange:
> 
>     INSTALLED_PKGS=$(echo `apt-mark showauto` `apt-mark showmanual`)
>     PKGS=""
>     for p in $PKGNAMES; do
>         case " $INSTALLED_PKGS " in
>             *" $p "*)
>                 PKGS="$PKGS $p"
>             ;;
>         esac
>     done
>     PKGNAMES="$PKGS"

Als (ehemaliger) Softwareentwickler blutet mir dabei allerdings das
Herz. Das wird mit vielen Paketen sehr ineffizient.

J.
-- 
The news at ten makes me peevish but animal hospital makes me cry.
[Agree]   [Disagree]
                 <http://archive.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: