X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=all_new_2018%2Fpurge_nonrequireds.sh;h=993a7181f14b122ff6f2b4b79644a644b208a633;hb=8bbfcc3c6a262a74d66ac84a25c7775029f4e53f;hp=34692dad5889d6e456a799e40179bde0dbfdab4b;hpb=12aea3ecd6036c77cbc9ea360d8cad116b61573f;p=config diff --git a/all_new_2018/purge_nonrequireds.sh b/all_new_2018/purge_nonrequireds.sh index 34692da..993a718 100755 --- a/all_new_2018/purge_nonrequireds.sh +++ b/all_new_2018/purge_nonrequireds.sh @@ -9,7 +9,8 @@ config_tree_prefix="${HOME}/config/all_new_2018/apt-mark/" dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > /tmp/list_white_unsorted for target in "$@"; do path="${config_tree_prefix}${target}" - for line in $(cat "${path}"); do + #for line in $(cat "${path}"); do + cat "${path}" | while read line; do if [ ! $(echo "${line}" | cut -c1) = "#" ]; then echo "${line}" >> /tmp/list_white_unsorted fi