Skip to main content

Evaluating Variables in a Flat File

  • Chapter
Expert Shell Scripting
  • 1363 Accesses

Abstract

One common scripting technique is to create a flat file that is one of a potential number of canned messages for users to receive—messages such as notifications of downtimes, changes in the environment, or use of system quota. (I consider a flat file simply a file that contains text.) Based on the logic in the script, the proper message will be sent to the user or users. A more advanced implementation of this technique provides a template that refers to environment variables and contains customizable elements so the message can be tailored specifically to the recipient.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Ron Peters

About this chapter

Cite this chapter

(2009). Evaluating Variables in a Flat File. In: Expert Shell Scripting. Apress. https://doi.org/10.1007/978-1-4302-1842-5_26

Download citation

Publish with us

Policies and ethics