Output Script Result to Log
Hi there,
Is there a way to write the results of the script below to a log file?
The script is made for OS X but I will probably be able to figure out how to do it once I know the Linux way.
Thanks in advance!
Code:
#!/bin/bash
# this should find all users currently logged in
users=( `who | awk '{print $1}' | sed '/^root$/d' | uniq` )
for user in "${users[@]}"; do
# find the homedir
homedir=/Users/$user
find $homedir/Library/Caches -name "*AdobeFnt*" -delete
done
"I'd rather be hated for what I am, than loved for what I'm not."
Bookmarks