ChuckRoss Posted July 3, 2015 Posted July 3, 2015 #!/bin/bashfilename = fileOne.txtecho "FileStart" | sort | uniq -c > fileTwo.txtls /home/username/mail/namespace.heliohost.org/mail_name/new/ > fileOne.txtcat $filename | while read LINEdo for w in `cat cd /home/username/mail/obsidian.heliohost.org/mal_name/new/$LINE`; do echo $w; done|sort|uniq -c >> fileTwo.txtdonecat fileTwo.txt | mail you@mail.comrm fileOne.txtrm fileTwo.txtrm /home/username/mail/namespace.heliohost.org/mail_name/new/*exit so if i can not get the hosting to allow this in bash how is it finished in window scripting or PowerShell?the script only runs once per time of changing the mail nameare there any other environmental variables I must set before running the script?the mail_name/new/ folder is populated daily with mail from the other aggregators and when I need to know what's important I'm not going to want to play the little cubby hole game. thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now