#!/bin/bash for corpus_file in `ls /mnt/storage/rjawor_storage/copycat_corpus/cleaned/*txt` do a=`basename $corpus_file` concordia-sentence-tokenizer -c /home/rjawor/concordia-server/concordia.cfg < $corpus_file > corpora/$a done