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 | |
# Telegram Bot Token | |
TOKEN="6830599987:AAHWoCdShN_potBq7xP6BxR52nuDyf10pT8" | |
# Telegram Bot API URL | |
API_URL="https://api.telegram.org/bot$TOKEN" | |
# Function to send photo to Telegram | |
send_photo() { |
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 | |
# Define the directory to start the search | |
SEARCH_DIR="." | |
# Define default file extensions and search options | |
FILE_EXTENSIONS=("txt") | |
SEARCH_OPTIONS="-r" # Default: recursively search in subdirectories | |
# Parse command line arguments |
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 | |
# MySQL Database Information | |
DB_USER="YOUR_DBA_USER" | |
DB_PASSWORD="DBA_PASSWORD" | |
HOST="HOSTNAME" | |
# Output directory | |
OUTPUT_DIR="/home/rhel/temp" |