Raspberry Vanilla IPMT

This commit is contained in:
2025-07-22 08:43:20 +07:00
commit 4247fc915d
6460 changed files with 146446 additions and 0 deletions

31
android13/search.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
# Check if the correct number of arguments is provided
if [ "$#" -lt 1 ]; then
echo "Usage: $0 search_string"
exit 1
fi
# Assign the first argument to the search_string variable
search_string="$1"
# Define the directories to exclude (modify these as needed)
exclude_dirs=("IPMT10" "IPMT7" "RACKMOUNT126" "RACKMOUNT88" "WALLMOUNT28")
# Define the fixed file extensions
extensions=("java" "xml" "h")
# Build the include options for grep
include_opts=""
for ext in "${extensions[@]}"; do
include_opts+="--include=*.$ext "
done
# Build the exclude options for grep
exclude_opts=""
for dir in "${exclude_dirs[@]}"; do
exclude_opts+="--exclude-dir=$dir "
done
# Perform the grep search
grep -rn $exclude_opts $include_opts -i "$search_string"