From Sludgy Madrill, 3 Months ago, written in Plain Text.
  1. #!/bin/gawk -E
  2. BEGIN{
  3.     ORS=""
  4.     w="watch?v="ARGV[1]
  5.     p="playlist?list="ARGV[2]
  6.     ARGV[1] == "-p" ? t=p : t=w
  7.  
  8.     printf("https://www.youtube.com/%s", t)
  9. }
captcha