Skip to content

Instantly share code, notes, and snippets.

@sjwilliams
Created February 7, 2020 19:12
Show Gist options
  • Save sjwilliams/0b7345440b74087b77f8e2ea6eacb535 to your computer and use it in GitHub Desktop.
Save sjwilliams/0b7345440b74087b77f8e2ea6eacb535 to your computer and use it in GitHub Desktop.
convert list of filenames into full URLs
for filename in *.mp4; do base=${filename#mp4} echo "https://youdomain.com/${filename%.mp4}-900w.mp4"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment