Sometimes, a variable may be needed to get inside awk (for or while loop for example). In order to pass the variable inside awk, include it like: awk -v i=$i '{ .. }' test
awk -v i=$i '{ .. }' test
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page. Click here for instructions on how to enable JavaScript in your browser.
Leave a Reply