#! /usr/bin/env sh grep 'INPUT ./' ./build/beitragsordnung.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