Tag Archives: terminal

Using Bash to Change the Delimiter in a CSV File

  The Problem I recently had a situation where I had a comma separated value (CSV) file that I wanted to easily parse within a shell script. Unfortunately the CSV data contained some double quoted strings with embedded commas, for example: "Adygeya, Republic",RU-AD,21250,RU,Russian Federation This made parsing the file quite painful, particularly as only the [...]
Posted in Uncategorized | Also tagged , , | Leave a comment

Automatically Deleting Sent Mail Stored By Mutt

I recently discovered over 600mb of sent email stored by Mutt, so I investigated the cause and created a solution that automatically deleted files older than a certain age.
Posted in linux | Also tagged , , | Leave a comment

Counting All Files in a Linux Directory

How to count the number of files in a directory using the Linux terminal
Posted in linux | Also tagged , | Leave a comment