TIP: Click on subject to list as thread! ANSI
echo: linux_bbs
to: Roy J. Tellason
from: Francois Thunus
date: 2005-01-23 19:53:00
subject: files.bbs

Hello !

20 Jan 05 18:09, Russell Tiedt wrote to Roy J. Tellason:

 RT>>> Looking for a way to generate a files.bbs file for a directory of
 RT>>> files.
 RT>>> This will greatly facilitate me adding about 1500 files to my
 RT>>> file base.

 RT>> I use a text editor.  :-)

 RT> So do I on occasion, shall I send you 15 CD's worth of files to make
 RT> files.bbs files for.  I don't have the time for that
route, let me
 RT> know if you have enough spare time. 

I missed the original post, but it shouldn't be too difficult.
Just recusively get all the names of all the files under a given directory
and add them to a file, and that's it.
something like
for file in `ls` do
 echo $file >> files.bbs
done

You probably can do better than that and import the description file as well:

for file in `ls` do
  echo $file >> files.bbs
  if grep zip $file ; then
   mkdir /tmp/$file
   unzip $file /tmp/$file
    if -f [ /tmp/$file/descript.ion ] ; then
      echo /tmp/$file/descript.ion >> files.bbs
      else echo "No description found" >> files.bbs
    fi
   rm -fd /tmp/$file
  fi
done

Sorry, I don't have the BBS at home and can't test it or even remember what
the usual names of the description files are these days, but you get the
gist.


 Francois Thunus

User Frienly, if you don't Use it - its Friendly!

 2:270/25.2{at}fidonet                         |  Views expressed here
                                            |  are strictly my own.
                                            |  (unless otherwise stated)

--- FMailX 1.48b
* Origin: Xara Sto Pragma ! Cessange - Luxembourg -> (FidoNet 2:270/25.2)
SEEN-BY: 633/267 270
@PATH: 270/25 396/45 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.