Tag: bash

Bash: using positional parameter

Positional parameters are used to pass arguments to a command line application. This post shows you how to used positional parameter in bash. On your terminal, type the following command:…

for loop in bash

For loops in bash a similar to commonly used languages such as Perl and C. bash loops do not use curly brackets for body demarcation. Example 1 Loop start from…

Finding files on Linux

Finding files on unix and linux Find is an extremely useful command for finding files. It searches based a specified condition at a specified directory and descends into all subdirectories…

bash: Sorting and Merging files

The following script merges several files into one file. Line 5 creates a sorted list of directory contents. Line six loops through all files with .fasta extension. Line 8 appends…