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 2. Have a Good Command

In this chapter, we will cover:

  • Concatenating with cat
  • Recording and playback of terminal sessions
  • Finding files and file listing
  • Command output as argument to a command (xargs)
  • Translating with tr
  • Checksum and verification
  • Sorting, unique and duplicates
  • Temporary file naming and random numbers
  • Splitting files and data
  • Slicing filenames based on extension
  • Renaming files in bulk with rename and mv
  • Spell check and dictionary manipulation
  • Automating interactive input

Introduction

Commands are beautiful components of UNIX-like systems. They help us achieve many tasks making our work easier. When you practise the use of commands everywhere, you will love it. Many circumstances make you say "wow!". Once you've had a chance to try some ...

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