Last active
November 11, 2020 06:42
-
-
Save changbowen/ef18e74c3000620943ce995b1d5179b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/37951114/direct-download-link-to-onedrive-file | |
onelink() { echo -n "$1"|base64|sed "s/=$//;s/\//\_/g;s/\+/\-/g;s/^/https:\/\/api\.onedrive\.com\/v1\.0\/shares\/u\!/;s/$/\/root\/content/"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment