From 6cb8e22a6e21dca3922be0992312b7c9058c8bfb Mon Sep 17 00:00:00 2001 From: zuozhoulin <50415887+zuozhoulin@users.noreply.github.com> Date: Wed, 1 Dec 2021 19:57:03 +0800 Subject: [PATCH] Update mother.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bash配! --- mother.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mother.sh b/mother.sh index ef14864..da57d7f 100644 --- a/mother.sh +++ b/mother.sh @@ -1,8 +1,2 @@ #!/usr/bin/bash -for pkg in $(pip3 list | awk '{print $1}' | tail -n +3) -do -pip3 uninstall "$pkg" -y -done -# reference -# https://bytefreaks.net/gnulinux/bash/get-the-first-column-of-a-file-in-bash -# https://stackoverflow.com/questions/339483/how-can-i-remove-the-first-line-of-a-text-file-using-bash-sed-script +sudo apt-get autoremove