#!/bin/bash rm -f $( ls -1 NEMO_manual.* | egrep -v "tex" ) find texfiles -regextype posix-extended -regex ".*\.(aux|log)" -exec rm -f {} \; exit 0