#!/bin/bash
echo -e "\nHi,This is an small ShellScript that show File that changed in 24 Hour Ago\n"
userName=$USER
directory="/home/""$userName"
echo "this is Directory We want to search : $directory"
find $directory -ctime 0 -type f 2>/dev/null >listOfFileThatChangedIn24H.txt
echo -e "\nList Of Changed File in last 24 Hours is in the Text File in current Directory\n"
echo -e "Do you Want to see that Here ?(yes/no)"
read answer
if [ "$answer" == "yes" ];
then
more listOfFileThatChangedIn24H.txt;
fi
از عملگر منطقی not هم می تونید استفاده کنید ولی آپشن درستش همونی که
nixoeen جان گفتن .
find / -name "dev" -not -type d > /home/Name/Desktop/Test