I'm doing Unix shell scripting, I need write output to another file.
I have a log file like
Place=hyd Location=Abids Shop=Bigbazar Place=Mumbai Location=Worli Shop=ShoppersStop Place=Hyd Location=Madhapur Place=Mumbai Location=Thane Shop=Adidas Place=hyd Location=Abids Place=Mumbai Shop=ShoppersStop
In the above file, I need to check whether all 3 parameters are available or not, if not I need to assign with "N/A" value to that parameter and write into another
I tried with
bash-4.1$ pr -ats, /home/user/Shop.log --columns 3 > final.txt
but its giving some wrong result to me because of missing lines.