Quantcast
Channel: TypeDrawers
Viewing all articles
Browse latest Browse all 4153

Please help me with this shell script

$
0
0
Hi there,

I am trying to improve the coarse shell script I am using to use TTFAutohint in batch.

Currently I am doing:

#!/bin/sh
for file in /Users/RamiroLaptop/Desktop/03-TTFAutohint/*
do
  ttfautohint -v -f latn -n -w G "$file" "$file-HINTED.ttf" 
  mkdir /Users/RamiroLaptop/Desktop/03-TTFAutohint/Hinted-Fonts
  mv /Users/RamiroLaptop/Desktop/03-TTFAutohint/*-HINTED.ttf /Users/RamiroLaptop/Desktop/03-TTFAutohint/Hinted-Fonts

done

But my method for saving the output is very clumsy: I am renaming the files and then moving them to a new directory.
I would like to just save the output in the new directory, but all my attempts have failed.
Can anyone help me with this? 
Thanks in advance.
 

Viewing all articles
Browse latest Browse all 4153

Trending Articles