Subj : FidoGazette Vol 13 no 26 Page: 2 To : All From : Janis Kracht Date : Wed Jun 26 2019 23:09:20 ================================================================ A R T I C L E S ================================================================ One of the first scripts I wrote under Linux quite a while back was this one.. I needed something to automatically rename all the "/home/bbbs/inbound/*.bad" files to "*.tic" after a near-bbs-death-event.. ========Script: mvbad2tic========== #!/bin/sh list="`ls -1 *.bad`" for file in $list do f=`basename $file .bad`.tic mv $file $f done =================================== basename prints file name NAME with any leading directory components removed. Optionally, it can also remove any trailing suffix. FIDOGAZETTE Vol 13 No 26 Page 2 June 26, 2019 ----------------------------------------------------------------- --- BBBS/Li6 v4.10 Toy-4 * Origin: Prism bbs (1:261/38) .