A quick and easy-to-use shell script for checking the status of URLs from a file. Perfect for web admins, developers, or anyone who needs to monitor the availability of multiple links. 🚀
- Check HTTP status codes for a list of URLs.
- Lightweight and easy to use.
- Optionally save results to a log file.
# Clone the repository
git clone https://github.com/manojxshrestha/url-checker.git
# Navigate to the project folder
cd url-checker
# Make the script executable
chmod +x url-checker.sh
# Run the script
./url-checker.sh /path/to/your/urls.txt
-
-h
,--help
Display the help menu with usage instructions. -
-l
,--log
Save results to a log file (check_log.txt
).
bash
shellcurl
command-line tool
The script reads URLs from a text file where each URL is on a new line:
https://example.com
https://github.com
https://openai.com
Checking: https://example.com
HTTP/2 200
Checking: https://github.com
HTTP/2 200
Checking: https://openai.com
HTTP/2 200
Made by me @manojxshrestha