citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

zoom-uri (245B)


      1 #!/usr/bin/env bash
      2 
      3 usage () {
      4   printf 'usage: zoom-uri https://zoom.us/j/123456\n'
      5   exit 1
      6 }
      7 
      8 if [ -z "$1" ]; then
      9   usage
     10 fi
     11 
     12 exec sed -E 's,https://([a-zA-Z]+\.)?zoom.us/j/([[:digit:]]+),zoommtg://zoom.us/?action=join\&confno=\2,' <<<"$1"