home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1997 March / Simtel-MSDOS-Mar1997-CD2.iso / 00_info / simi2url.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-01-27  |  1KB  |  28 lines

  1. #!/bin/sh
  2. #
  3. # simi2url Convert simms.idx format to ftp URL format
  4. # By Prof. Timo Salmi Fri 10-May-96, ver 1.0
  5. #
  6. # This script can be used to convert the simms.idx information from
  7. # ftp://ftp.simtel.net/pub/simtelnet/msdos/00_info/simdos-i.zip
  8. # simdos-i.zip Comma-delim list of all Simtel.Net MS-DOS files w/descrip.
  9. # to the ftp ULR format for easy referencing in downloading
  10. #
  11. # For example you might use
  12. # grep tsutil simms.idx | simi2url
  13. # to have the reference
  14. # ftp://ftp.simtel.net/pub/simtelnet/msdos/sysutl/tsutil42.zip
  15. #
  16. # To make this simi2url script operative the first time, apply
  17. #  chmod u+x simi2ulr
  18. #  rehash
  19.  
  20. awk -F\, '{ printf "ftp://ftp.simtel.net/pub/%s%s%s\n", $1, $2, $3 }' \
  21.   | sed -e 's/\"//g'
  22.  
  23. #....................................................................
  24. #Prof. Timo Salmi   Co-moderator of news:comp.archives.msdos.announce
  25. #Moderating at ftp:// & http://garbo.uwasa.fi archives  193.166.120.5
  26. #Department of Accounting and Business Finance  ; University of Vaasa
  27. #ts@uwasa.fi http://uwasa.fi/~ts BBS 961-3170972; FIN-65101,  Finland
  28.