Extract second word from a file in yum repository file using command line or bash

I wanted to extract a paticular file path from a text file (yum repository file) The file contents looks like this [rhel-8-for-x86_64-baseos-rpms] name = Red Hat Enterprise Linux 8 for x86_64 – BaseOS (RPMs) baseurl = https://myhost.com enabled = 1 gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify = 1 sslclientkey = /etc/pki/entitlement/60472949067-key.pem sslclientcert = /etc/pki/entitlement/604712349067.pem… Read More Extract second word from a file in yum repository file using command line or bash