Get duration of all media files in a folder with ffprobe

A bash code which prints duration of all the media files (mp4, mp3, wav, aiff, etc.) in a folder is as follows: for f in * do echo $f; ffprobe $f -v quiet -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 -sexagesimal done An equivalent one-liner: [Read More]
ffmpeg  bash 

Search in all git branches

In this brief article, we demonstrate how to search for text within all local Git branches. There may be instances when you have numerous Git branches, making it challenging to recall in which branch a particular function resides. The bash code below loops through all of your local Git branches and uses grep to search for a specified pattern: [Read More]
bash  git