Sun Nov 13, 2016 8:45 am
Sun Nov 13, 2016 9:03 pm
Mon Nov 14, 2016 7:14 am
if lynx -dump -nolist http://main.mepis-deb.org/MX14packages.html | grep "$search_term"
then
FOUND="yes"
printf "$search_term found in community repo http://main.mepis-deb.org/MX14packages.html \n"
fi
code]
repo_list=(
http://teharris.net/NewPackages.html
http://main.mepis-deb.org/MX15packages.html
http://main.mepis-deb.org/MX14packages.html
)
#----------------------------------------------------------
for i in ${repo_list[*]}
do
# if echo "$i"
if lynx -dump -nolist "$i" | grep "$searchterm"
then
FOUND="yes"
printf "\n$searchterm found in $i\n"
fi
done
Mon Nov 14, 2016 8:23 pm
Mon Nov 14, 2016 10:35 pm
# find files in current directory modified more than 30 days ago:
find . -type f -mtime +30
# find files in current directory modified in the last 10 days:
find . -type f -mtime -10
if find . -name myfile -mtime +7 ; then
if lynx -blah > myfile ; then
grep whatever
print whatever
fi
else
grep whatever
print whatever
fi