I’m Sankalp, a software designer and entrepreneur based in Jakarta, Indonesia. I’m the Head Of Engineer for Autobahn Security, where we develop technologies that empower regular companies to explore security on their own terms and make them Cyberfit.
Recently I needed a way to download all the videos from a telegram channel that I came across, and there was no way I wanted to open the web version and click on the download button for all the hundreds of videos one by one.
One handy feature of Bash is "Process Substitution", which allows the output of a command to be treated as if its the content of a file. This is particularly useful when you want to use the diff command to compare the contents of two directories.
For those who frequently work in the terminal, searching through command history can be an invaluable time saver. The Bash shell offers some neat shortcuts and features that allow users to quickly navigate and search through their previously executed commands.
This script searches for all .jpg files within the current directory and its subdirectories. For each found .jpg, it creates a resized version thats 60% of the original size with 80% quality, appending -small to the new images filename. A confirmation message is displayed for each successfully converted image.