Skip to content

Instantly share code, notes, and snippets.

View tmatzxzone's full-sized avatar
:octocat:
Kluless

TmatzXzonEv tmatzxzone

:octocat:
Kluless
View GitHub Profile
@tmatzxzone
tmatzxzone / download_gofile.sh
Last active May 24, 2024 01:15 — forked from Zorg64/download_gofile.sh
Bash script to download files from gofile.io
#!/bin/bash
# Prompts the user for a URL if not provided as a command-line argument.
# Extracts the ID from the given URL to use in API requests.
function promptForURL() {
local url="$1"
until [ -n "$url" ]; do
read -p "URL: " url
done
id=$(sed 's|.*gofile.io/d/||g' <<< "$url")