O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. File In, File Out

In this chapter, we will cover:

  • Generating files of any size
  • Intersection and set difference (A-B) on text files
  • Finding and deleting duplicate files
  • Making directories for a long path
  • File permissions, ownership and sticky bit
  • Making files immutable
  • Generating blank files in bulk
  • Finding symbolic links and its target
  • Enumerating file type statistics
  • Loopback files and mounting
  • Creating ISO files, Hybrid ISO
  • Finding difference between files, patching
  • head and tail - printing the last or first 10 lines
  • Listing only directories - alternative methods
  • Fast command line directory navigation using pushd and popd
  • Counting the number of lines, words, and characters in a file
  • Printing directory tree

Introduction

UNIX treats every object in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required