Jump to content

Bash $Line`;do Echo $W; Done|Sort|Uniq -C >>


Recommended Posts

#!/bin/bash

filename = fileOne.txt

echo "FileStart" | sort | uniq -c > fileTwo.txt

ls /home/username/mail/namespace.heliohost.org/mail_name/new/ > fileOne.txt

cat $filename | while read LINE

do

for w in `cat cd /home/username/mail/obsidian.heliohost.org/mal_name/new/

$LINE`; do echo $w; done|sort|uniq -c >> fileTwo.txt

done

cat fileTwo.txt | mail you@mail.com

rm fileOne.txt

rm fileTwo.txt

rm /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 name

are 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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...