home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 252 
 Sean Dennis to All 
 Secondary scripts 
 18 Jun 15 19:30:26 
 
Hello All,

This is an example of the two scripts that create the FILE_ID.DIZ files for 
the archives:

=== Cut ===
#!/bin/sh
cd /opt/mbse/micronet/infopack
if [ -e "file_id.diz" ]; then
  echo `rm file_id.diz`
fi
cat << EOF >> file_id.diz
Micronet Information Network Infopack for
`date "+%A, %B %e, %Y"` (day `date +%j`).
All the information you need to join
Micronet, an active and friendly BBS mail
network.  We offer FTN, QWK and NNTP
networking.  For more info, please read
this infopack, visit a participating
BBS, or visit our webpage for more info.
http://outpostbbs.net/micronet.html
EOF
unix2dos /opt/mbse/micronet/infopack/file_id.diz
=== Cut ===

Notes:

That little trick with the "cat" command will output all of the lines until 
the EOF tag to file_id.diz.  The second line of the FILE_ID.DIZ is translated 
by the shell to something like "Thursday, June 18, 2015 (day 169)."

unix2dos converts a text file from using just CR (UNIX-style) line endings to 
CRLF (DOS-style) line endings.

--Sean

... Reality is for people who can't cope with their drugs.
--- GoldED+/LNX 1.1.5-b20130910
 * Origin: Outpost BBS * Johnson City, TN, USA (1:18/200)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca