Linux Today: Linux News On Internet Time.

More on LinuxToday

Exercise #6: Set Variables in Scripts

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


Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers

"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: