SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Shell Script Snippets
Rename multiple files:
for i in *.avi
do
j=`echo $i | sed 's/find/replace/g'`
mv "$i" "$j"
done
Can also be written on a single line as
for i in *.avi; do j=`echo $i | sed 's/find/replace/g'`; mv "$i" "$j"; done
Finding Multiple Files in a directory
Find and count how many files were modified more than 365 days ago:
find . -mtime +365 | wc -l
Find and delete files that were modified more than 365 days ago:
find . -mtime +365 -exec rm {} \;
Technology:
- Log in to post comments