Hi,
How can we get the return value of any unix command. For ex. The wc command gives return value of 0 if its successful else it gives > 0 for error occurred.
Can I assign this return value to shell variable ? or can I use this return value directly in “if [ condition ] “
Thanks...
Thank you Vgersh99. Its work fine and your code gave me lot of idea in exploring other options with array. I am novice in awk programming and trying to understand awk’s powerfulness. Thanks again for your help.
VK
:-)
Hi,
I have situation where 2 data files, File A and File B. I need to read record from File A second column and replace third column of File B in sequence order.
File A File B
1 ab 1 a xx
2 ac 2 a yy
3 ad 3 a zz
4 ae 4 a ww
Expected out put is
File B
1 a ab...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.