Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Exercise #6: Set Variables in Scripts

Feb 28, 2011, 17:03 (0 Talkback[s])

"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

Related Stories: