dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


Linux.com: SysAdmin to SysAdmin: Programming with bash

Jun 24, 2004, 07:00 (0 Talkback[s])
(Other stories by Brian Jones)

WEBINAR:
On-Demand

Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame


"Face it, you can't become any kind of respectable administrator without knowing a decent bit about shell scripting. You don't have to be the 'Bashmeister General' or anything, but having a firm grasp on the basics will get you out of a lot of jams, and provide a foundation for furthering your experience and your skill. In this article we'll cover some programming functionality of the bash shell.

"Functions are useful shell programming constructs. In the shell, functions are, for all intents and purposes, the same as methods and subroutines. A function is a way to collect a bunch of bash commands, statements, and expressions into a single box. You label the box, and then, when you need the functionality contained in the box, you call it by name. You can have lots of functions in the same script, as long as you give them each a unique name..."

Complete Story

Related Stories: