#! /usr/bin/env sh grep 'INPUT ./' ./build/wahlordnung.fls | uniq | sed 's/INPUT //' | while read -r file; do if ! [ "$(basename "$file")" = preamble.tex ] && ! [ "$(basename "$file")" = gymnasium.png ]; then printf "\n%% Filename: %s\n" "$file" grep -v '^\s*%' "$file" fi done