---

Exercise #6: Set Variables in Scripts

“The 10 Days of awk

“Our “10 days of awk” tutorial series is in full swing. This awk
short-course includes tutorials, videos and exercises which are
rolled out each day in an effort to help admins use awk more
confidently.

“Exercise #6: Set Variables in Scripts

“When you need to set variables, you can do that in the BEGIN
section of an awk script. Here the variable firstuser is set to
1000. The BEGIN section sets that variable and it is then used
later in the script.”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis