Go to Stack Overflow where this belongs maybe?
u can use cat | grep probably
cut -d ' ' -f(number of the column u want)
something like that
if possible just use python. do everything in python and if needed you can just use
import os; os.run([whatever bash comand you desire here]) to run comands
all i know about bash is git push origin main sorry bro