Skip to main content

Chapter 2: Playing with Files: Viewing, Manipulating, and Editing Text Files

  • Chapter
Book cover Shell Scripting Recipes

Abstract

Text files are a mainstay of Unix operating systems. From the password file, /etc/passwd, to server configuration files, such as httpd.conf (exact location varies, depending on the system), a computer’s behavior is controlled by text files. But what is a text file? E-mail and Usenet messages are text files; HTML web pages are text files; shell scripts are text files; log files are text files. Text files are human-readable and can be edited with any text editor. They can, of course, be viewed, manipulated, and edited with shell scripts.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.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

Notes

  1. 1.

    http://www.opengroup.org/onlinepubs/007908799/xbd/glossary.html#tag_004_000_306

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Chris F. A. Johnson and Jayant Varma

About this chapter

Cite this chapter

Johnson, C.F.A., Varma, J. (2015). Chapter 2: Playing with Files: Viewing, Manipulating, and Editing Text Files. In: Shell Scripting Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0220-3_2

Download citation

Publish with us

Policies and ethics