Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (16 sloc) 396 Bytes
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m'
GREEN='\033[0;32m'
for username in $(ls /home)
do
echo -e "${RED}Searching for username => $username"
find / -type f -readable -not -path "/proc*" -not -path "/sys*" 2>/dev/null | while read files;
do
if grep -qia $username $files; then
echo -e "${GREEN}File path => $files"
echo -e "${NC}"
grep -nai $username $files -C 1
fi
done
done
You can’t perform that action at this time.