Need a script to process some files

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jason
Date:  
Subject: Need a script to process some files
Rick Rosinski wrote:
>
> I am following the Font-HOWTO to set up True Type font support
> for StarOffice 5.2. Everything was working out fine until I ran
> into the step where I need to do "touch font.pfb" for each *.ttf file.
> I have too many fonts to process them individually. Does anybody
> have a script handy that will read a directory of *.ttf and run
> an external command that will run "touch <whater>.pfb", basically
> creating empty files - all with .pfb as the extension instead of .ttf?
> This would really be helpful, as I will then be able to print the newly
> installed ttf files with StarOffice.


for FONTFILENAME in `find . -iname "*ttf"`
do
    touch `echo $FONTFILENAME | sed s/".ttf"/".pfb"/`
done


-- 
jkenner @ mindspring . com__
I Support Linux:           _> _  _ |_  _  _     _|
Working Together To       <__(_||_)| )| `(_|(_)(_|
To Build A Better Future.       |                   <s>