dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

youtube (222B)


      1 #!/bin/rc
      2 # get youtube links
      3 
      4 sed 's/<[^>]*>//g' |
      5 	grep -Eo 'https://www.youtube.com/watch\?v=.{11}|https://youtu.be/.{11}|https://www.youtube.com/embed/.{11}' |
      6 	sed -E 's~.*(.{11})$~https://www.youtube.com/embed/\1~g'