melawy-etc-skel-std-powerma.../00_find_modified.sh

17 lines
285 B
Bash
Executable File

#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo "$0"
exit
else
echo "USER IS ROOT"
fi
find /home/liveuser -type f -newermt '2024-01-18 23:00' -ls |
grep -v '.cache' |
awk '{print $11}' |
sed -e "s|/home\/liveuser\/||g" > ./liveuser.txt
echo "Ready"