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?

Data Science at the Command Line: Free Online Book

Doing Data Science at the Command Line

Data Science at the Command Line by Jeroen Janssens, one of the few books focuses on the use of command line tools to learn Data Science is available now for free online at https://www.datascienceatthecommandline.com/. The book teaches the power of command line to do data science more effectively. It covers over 80 command line tools… Continue reading Data Science at the Command Line: Free Online Book

How to join PDF files in Mac on Terminal?

In Mac, you can use Preview to join multiple pdf files into a single pdf file. A more convenient way is to join/merge multiple pdf files from command line on Terminal. More recent Mac OS X versions already have Python script to merge multiple pdf files into a single pdf file. Here is how to… Continue reading How to join PDF files in Mac on Terminal?

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

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