[X-Unix] exe files
Stroller
MacMonster at myrealbox.com
Sun May 15 08:21:40 PDT 2005
On May 15, 2005, at 5:36 am, John Harrold wrote:
> Put the command in a file. You might want to add sleep at the end so
> you
> can see the output:
>
> <spamreport>
> cat Library/Logs/mailfilter.log | grep "Deleted" | sed
> "s/.*Deleted.*\[Applied filter: '//g" | sed "s/' to '.*//g" | sort |
> uniq -c | grep -v " 1" | sort -r
> sleep 3
> </spamreport>
>
> Then make the file executable by typing:
>
> chmod 755 spamreport
For good practice, you should also make the first line of the file:
#!/bin/bash
or whichever shell you wish the commands to be run in.
Stroller.
More information about the X-Unix
mailing list