melawy-skel-liveuser/00_find_modified.sh

14 lines
283 B
Bash
Raw Permalink Normal View History

2023-10-16 10:42:49 +05:00
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo $0
exit
else
echo "USER IS ROOT"
fi
2023-10-29 00:42:50 +05:00
find /home/liveuser -type f -newermt '2022-10-16 10:20' -ls | grep -v '.cache' | awk '{print $11}' | sed -e "s|/home\/liveuser\/||g" > ./liveuser.txt
2023-10-16 10:42:49 +05:00
2023-10-29 00:42:50 +05:00
echo "Ready"