patching for migration to 25.05
This commit is contained in:
parent
eca476ac8d
commit
ffe439bf0a
1 changed files with 0 additions and 20 deletions
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Check for correct number of arguments
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Usage: $0 <directory> <search_string>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
directory="$1"
|
||||
search_string="$2"
|
||||
|
||||
# Check if the provided directory exists
|
||||
if [ ! -d "$directory" ]; then
|
||||
echo "Error: Directory '$directory' does not exist."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Recursively search all files in the directory for the search string
|
||||
grep -rnw "$directory" -e "$search_string"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue