#!/bin/bash for i in articles/*; do j=`echo $i | cut -d/ -f2` ./make_pdf_article $j done