Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Visio-to-PNG Batch Conversion - Possible?



On 2008-02-25 08:46 -0600 (Mon), Stuart Luppescu wrote:

> It could use some improvement, though. Now I have to feed it the name of
> the postscript file *without* the .ps extension. Anyway know how to use
> sed or somesuch to automatically change the extension from ps to png?

The typical pattern for this is to use the basename command:

    for i in *.ps; do b=$(basename $i .ps); echo $b.png; done

cjs
-- 
Curt Sampson       <cjs@example.com>        +81 90 7737 2974   
Mobile sites and software consulting: http://www.starling-software.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links