This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| while read LINE; do | |
| curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE" | |
| echo " $LINE" | |
| done < url-list.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -sSL -o /dev/null -D - http://domain.com | |
| -S, --show-error Show an error message if it fails | |
| -L/--location If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response | |
| code), this option will make curl redo the request on the new place. | |
| -o, --output FILE Write output to <file> instead of stdout | |
| -D, --dump-header FILE Write the headers to this file | |
| curl -v -o - -D - http://domain.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget www.whatever.com/folder/{1..30}.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /bin/ls * | awk '{ printf("mv "$0" ")} {gsub(/_/,"."); print $0 }' | bash |
NewerOlder