Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SCHEDS=http://www.geocities.jp/binewsjp/ic/userlist1.txt
- if [ -f userlist1.txt ] ; then
- echo -n Backing up scheds...
- mv userlist1.txt userlist1.txt.old
- echo done.
- echo -n Downloading new scheds...
- wget -q $SCHEDS
- echo done.
- if [ ! -f userlist1.txt ] ; then
- echo -n No update, reverting...
- mv userlist1.txt.old userlist1.txt
- echo done.
- else
- echo -n Removing crap...
- cat userlist1.txt | sed 's,*,,' > userlist2.txt
- mv userlist2.txt userlist1.txt
- echo done.
- echo -n Removing headers...
- tail -n +5 userlist1.txt > userlist2.txt
- mv userlist2.txt userlist1.txt
- echo done.
- fi
- else
- echo -n Downloading new scheds...
- wget -q $SCHEDS
- echo done.
- echo -n Removing crap...
- cat userlist1.txt | sed 's,*,,' > userlist2.txt
- mv userlist2.txt userlist1.txt
- echo done.
- echo -n Removing headers...
- tail -n +5 userlist1.txt > userlist2.txt
- mv userlist2.txt userlist1.txt
- echo done.
- fi
- touch userlist1.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement