Going over a Shell script to automate a process that was tedious to do manually.
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
► https://runninginproduction.com
► https://github.com/nickjj/runninginpr...
► / 1398668116872343552
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
► https://nickjanetakis.com/courses/
THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...
FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter: / nickjanetakis
► GitHub: https://github.com/nickjj
TIMESTAMPS
---------------------------------------------------
0:14 -- Focusing on the why and then the how
0:41 -- Using this script to get meta data about each podcast episode
2:01 -- The manual process before I made this script
3:45 -- The script fixed a bunch of human errors I made in the past
4:19 -- Running the script to see how it works
5:43 -- Skimming the script
6:27 -- Set -e and preparing the file path to modify
7:55 -- Handling no episode or invalid episode names
9:35 -- Using find, sort and tail to get the latest episode
12:51 -- 4 different ways to get the file size in bytes on Linux and Unix
17:40 -- Using FFmpeg and a regular expression to get the duration of an MP3
22:00 -- Using a Bash while loop to strip leading 0s and leading colons
25:58 -- Figuring out if an episode is published or a draft
30:43 -- Outputting the details if we're doing a dry run
31:54 -- Using Perl to do in place edits on the file in a cross platform way
33:23 -- A Bash 1 liner to run the script on every episode
34:53 -- Getting a more accurate duration with FFmpeg