How To Loop Through Lines in a File in Bash?

Often you may want to loop through each line from a file and do something to each line. Yes, you can use Python or other programming language to do that. However, a simple bash script can be extremely useful in looping through lines in a file. Here is how to loop through lines in a… Continue reading How To Loop Through Lines in a File in Bash?

10 Easy Bash Shell Aliases

Aliases are great way to simplify the terminal experience. Basically an alias is a command line shortcut that allows one personalize the way one interact with Linux commands. The basic idea is to come with a simple version of your favorite command and add it to .bashrc file so that you can reuse the simple… Continue reading 10 Easy Bash Shell Aliases