!/bin/bash
#!/bin/bash
# Set the keyword to search for
keyword="your_keyword_here"
# Loop through all files starting with "dnf"
for file in dnf*; do
# Check if the file exists and is a regular file
if [ -f "$file" ]; then
# Print the filename
echo "Filename: $file"
# Search for the keyword in the file
grep -i "$keyword" "$file"
# Add an empty line for readability
echo
fi
done