File Operations and Commands

  • Chris F. A. Johnson
  • Jayant Varma

Abstract

Because the shell is an interpreted language, it is comparatively slow. Many operations on files are best done with external commands that implicitly loop over the lines of a file. At other times, the shell itself is more efficient. This chapter looks at how the shell works with files – both shell options that modify and extend file name expansion and shell options that read and modify the contents of files. Several external commands that work on files are explained, often accompanied by examples of when not to use them.

Keywords

Regular Expression Command Line Standard Input Shell Script Default Behavior 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Chris F. A. Johnson and Jayant Varma 2015

Authors and Affiliations

  • Chris F. A. Johnson
    • 1
  • Jayant Varma
    • 1
  1. 1.OntarioCanada

Personalised recommendations