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

[Sheflug] Easy bash question



Hi all,
    I have heaps and heaps of files in directories I need to convert
(they are eps files that need to be converted into Fig's, using
pstoedit). I have used a simple loop to do this:
for i in $(ls *.ps); do pstoedit -f xfig <blah> $i > $i.fig ; done

    This is fine, but my_file.eps turns out to be my_file.eps.fig,
which is not aesthetically pleasing (and obviously a source of much
annoyance :D). So I was wondering, what's the best way of trimming the
extension from my $i loop variable? Do I have to use sed for this? Do
I actually need to read the manual? 

    Thanks,
    José

    
-- 
José L Gómez Dans			PhD student
Tel: +44 114 222 5582			Radar & Communications Group
FAX; +44 870 132 2990			Department of Electronic Engineering
					University of Sheffield UK
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.