Skip to Content
Linux Shell Scripting Cookbook - Third Edition
book

Linux Shell Scripting Cookbook - Third Edition

by Clif Flynt, Sarath Lakshman, Shantanu Tushar
May 2017
Beginner
552 pages
28h 47m
English
Packt Publishing
Content preview from Linux Shell Scripting Cookbook - Third Edition

File In, File Out

In this chapter, we will be covering the following recipes:

  • Generating files of any size
  • The intersection and set difference (A-B) on text files
  • Finding and deleting duplicate files
  • Working with file permissions, ownership, and the sticky bit
  • Making files immutable
  • Generating blank files in bulk
  • Finding symbolic links and their targets
  • Enumerating file type statistics
  • Using loopback files
  • Creating ISO files and hybrid ISO
  • Finding the difference between files, and patching
  • Using head and tail for printing the last or first 10 lines
  • Listing only directories - alternative methods
  • Fast command-line navigation using pushd and popd
  • Counting the number of lines, words, and characters in a file
  • Printing the directory tree
  • Manipulating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett

Publisher Resources

ISBN: 9781785881985