Skip to content

Instantly share code, notes, and snippets.

@YuehChuan
Last active November 18, 2019 23:14
Show Gist options
  • Save YuehChuan/f9411cdbaaddd69e40fd46e2e1238b03 to your computer and use it in GitHub Desktop.
Save YuehChuan/f9411cdbaaddd69e40fd46e2e1238b03 to your computer and use it in GitHub Desktop.
unset -f curl
# included just in case
curl https://www.google.com/search?q=hk%20police%20massacre%20polyu%27s%20students&aqs=chrome&fbclid=IwAR3q7zfXaUIqJkF0kmCop-UAdp2fUeTDK6WrRl-kDa8yPIz_N7m2cjtR8FQ[0-1118]
# curl loop using URL globbing
#expect output 1-1118
#[1/10]: https://www.hongkongfp.com/2019/11/18/heartbreaking-day-polyu-student-leaders-call-public-hundreds-trapped-campus/0 --> <stdout>
#--_curl_--https://www.hongkongfp.com/2019/11/18/heartbreaking-day-polyu-student-leaders-call-public-hundreds-trapped-campus/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment