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?

11 Ways to Use find Command in Linux to Search Files/Directory

The find command is Linux is one of the most useful commands  for searching files and directories. At first the find command syntax might look a bit daunting, but once we get a hang of it, the find command is a great asset. How to print all files and directories in current directory? find .… Continue reading 11 Ways to Use find Command in Linux to Search Files/Directory