Bash: Print YouTube RSS Feed: read, input, printf
After executing Bash script, user is prompted to input YouTube channel hash, then URL for Youtube RSS feed prints in Unix shell. As demonstrated below:
# bash youtube_feed.sh
Paste YouTube channel hash: UCJyVgjrb0nQFdxL-3X98SfA
https://www.youtube.com/feeds/videos.xml?channel_id=UCJyVgjrb0nQFdxL-3X98SfA
The YouTube channel hash is easy to find. The following link example displays the type of URL which contains the channel hash, e.g. UCJyVgjrb0nQFdxL-3X98SfA
https://www.youtube.com/channel/UCJyVgjrb0nQFdxL-3X98SfA/videos