Hi, i want to print 2nd column value with the below script. I need to take input of the string i need to search in that file and file name. How can i take these two as inputs? using read command? Getting error for below script.
srinishoo: ya..first i thought of a simple grep but it fetches both SID and DBName in this format SID;DBName but i wanted only DBName when the input SID is given. so chose awk which's good in txt processing including table format.
Akshay & Roozo: Yeah both codes working fine getting the second column i.e., DBName. Thank you very much. But please let me know any doc or URL for awk which teaches me awk step by step.
---------- Post updated at 11:07 AM ---------- Previous update was at 11:04 AM ----------
srinishoo: yeah..got it right with your, Roozo's and Ashkay's awk code. thank you very much.