![]() It then skips header lines, fetches the first column and takes 1 argument from the pipe left of it, and at last passes it to the command to upgrade the list of packages. Use awk to upgrade packages - The below command first lists all outdated packages, then fetches the first column and converts the multiline result from cut into a single-line, and forms a space-separated list. ![]() pip3 list -outdated -format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
0 Comments
Leave a Reply. |