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