Add yt-conv script.

This commit is contained in:
2025-12-23 15:22:28 +01:00
parent 913710ded9
commit af980bb7c8

17
yt-conv Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
if [ $# -ne 1 ]
then
>&2 echo "Usage: $0 <url>"
exit 1
fi
if [ "$1" = "-h" ]
then
echo "Usage: $0 <url>"
exit 0
fi
URL="$1"
YT_URL="${URL//https:\/\/*\//https:\/\/www.youtube.com\/}"
echo "$YT_URL"