Если вам просто нужно вернуть два значения:
grep -ow ABC File1
-o, --only-matching Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.
-w, --word-regexp Select only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the end of the line or followed by a non-word constituent character. Word-constituent characters are letters, digits, and the underscore.
Все тесты проводились на rpi -Zero -W + picore 9.0.3
tce-load -wi python3.6.tcz
mkdir cd /home/tc/pip3Persistent
cd /home/tc/pip3Persistent
wget https://bootstrap.pypa.io/get-pip.py
sudo -H python3.6 get-pip.py
Сохраните 4 новых каталога для сохранения:
vi /opt/.filetool.lst
usr/local/lib/python3.6/site-packages/pip/ #pip3 verified
usr/local/lib/python3.6/site-packages/pip-20.0.2.dist-info/ #pip3 verified
usr/local/lib/python3.6/site-packages/wheel/ #pip3 verified
usr/local/lib/python3.6/site-packages/wheel-0.34.2.dist-info/ #pip3 verified
Зафиксировать постоянное сохранение:
filetool.sh -b
Проверить pip3:
sudo -H pip3 install pip-install-test
python3.6 -c 'import pip_install_test'
Перезагрузите компьютер и повторите -проверку, чтобы подтвердить сохранение