I have a files test.txt which contains 1000 rows and 2 column:
am-rls-dev am-nexus
am-rls-dev cancel-ppd-nexus
am-rls-dev h2h-autodebet-token-nexus
am-rls-dev h2h-autodebet-transact-nexus
am-rls-dev h2h-onlinepaymentmuf-nexus
am-rls-dev preterm-nexus
am-rls-dev received-trade-ho-nexus
chatboot-api-dev chatbot-api-nexus
chatboot-api-dev chatbot-be-nexus
cis-rls-dev cif-cis-nexus
cis-rls-dev cis-nexus
cis-rls-dev custhandling-cis-nexus
cis-rls-dev rpt-handling-nexus
and If the data separated by double space, and still have a space after that:
am-rls-dev am nexus
am-rls-dev cancel ppd nexus
am-rls-dev h2h autodebet token nexus
am-rls-dev h2h autodebet transact nexus
am-rls-dev h2h onlinepaymentmuf nexus
Lets say, the first column is a namespace and the second column is a buildconfig. My question is, how am i able to print like this in a loop :
echo this namespace is: $namespace and this buildconfig is: $buildconfig
echo this namespace is: $namespace and this buildconfig is: $buildconfig
echo this namespace is: $namespace and this buildconfig is: $buildconfig
echo this namespace is: $namespace and this buildconfig is: $buildconfig
echo this namespace is: $namespace and this buildconfig is: $buildconfig