Skip to content

Instantly share code, notes, and snippets.

@webug-lab
Last active July 16, 2024 22:04
Show Gist options
  • Save webug-lab/c2c5586ca7388c8f29a7d3bf90659c29 to your computer and use it in GitHub Desktop.
Save webug-lab/c2c5586ca7388c8f29a7d3bf90659c29 to your computer and use it in GitHub Desktop.
bash
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "usage: $0 <URL> <SEARCH_TEXT>"
exit 1
fi
URL="$1"
SEARCH_TEXT="$2"
curl -s $URL | grep "$SEARCH_TEXT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment