I use a file as a little db table. The content is like this:
client1 john doe engineer cal
client2 jane doe nurse ny
client3 ali veli doctor ny
I want to find profession of client3. There is a "space" between name and surname, there is a "tab" between other columns. First column is unique so I can use this colums as private key.
I want to use a command for finding profession or state of a client by using a command like this:
grep -i client3 | "select 3rd column"
What can I use isntead of "select 3rd column"?