Linux Shell Scripting Tutorial - A Beginner's guide

Table of Contents
Sorting unique and duplicates 83
Temporary file naming and random numbers 89
Splitting files and data 90
Slicing filenames based on extension 92
Renaming and moving files in bulk 95
Spell checking and dictionary manipulation 97
Automating interactive input 99
Making commands quicker by running parallel processes 102
Chapter 3: File In, File Out 105
Introduction 106
Generating files of any size 106
The intersection and set difference (A-B) on text files 107
Finding and deleting duplicate files 110
Working with file permissions, ownership, and the sticky bit 113
Making files immutable 118
Generating blank files in bulk 119
Finding symbolic links and their targets 120
Enumerating file type statistics 121
Using loopback files 124
Creating ISO files and hybrid ISO 127
Finding the difference between files, patching 130
Using head and tail for printing the last or first 10 lines 132
Listing only directories – alternative methods 135
Fast command-line navigation using pushd and popd 136
Counting the number of lines, words, and characters in a file 138
Printing the directory tree 139
Chapter 4: Texting and Driving 143
Introduction 143
Using regular expressions 144
Searching and mining a text inside a file with grep 147
Cutting a file column-wise with cut 154
Using sed to perform text replacement 158
Using awk for advanced text processing 162
Finding the frequency of words used in a given file 168
Compressing or decompressing JavaScript 170
Merging multiple files as columns 173
Printing the nth word or column in a file or line 174
Printing text between line numbers or patterns 175
Printing lines in the reverse order 176
Parsing e-mail addresses and URLs from a text 177

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...