What is the meaning of IFS in Bash Shell Script ?

bash - input field separator

The full form of IFS is “Internal Field Separator” alternatively based on its functionality this is also … Read more

Find and Delete File and Directory using Bash Shell Script

Find and Delete File

Below shell script will find and delete certain file or multiple files from the directory you want. … Read more

How to use getopts to Accept Variable Arguments for Bash Script ?


getopts is a built-in Unix shell command for parsing command-line arguments. It is designed to process command … Read more

How to Pass Command Line Arguments to Shell Script ?


getopts allows you to accept command line arguments for the bash script, below is demo script which … Read more

How to Check if File Exists using Bash Script ?

Check if File Exist in Bash

If we are processing certain file using bash shell script, its necessary to make sure the file … Read more

How to read a file Line by Line in Bash Script ?

Shell Script

When you want to process some large data from a text file with one line at a … Read more

How to Count number of lines in a file in Linux ?

When you are just interested into number of lines in a file to make some decision based … Read more

How To Clear Shell History In Ubuntu Linux ?

When you type something on linux shell, by default Linux save the commands what you type as … Read more

How to extract only specific files from tar.bz2 / tar.gz in Linux ?

The following shell script demos the creation of archive / tar and then use commands to check … Read more

Using conditional statements, if and if-else in Python

When you are writing python program, sometimes you need to make certain checks on variables and based … Read more