Skip to content

Instantly share code, notes, and snippets.

@maxcollombin
Last active January 30, 2025 05:44
Show Gist options
  • Save maxcollombin/09b6714b7c23ed1ab094832dc9c0fc90 to your computer and use it in GitHub Desktop.
Save maxcollombin/09b6714b7c23ed1ab094832dc9c0fc90 to your computer and use it in GitHub Desktop.
Script for validating muliple INTERLIS .ili files in a directory.
# Truncate the ili2c.log file if it exists, otherwise create it
: > ili2c.log
# Validate each .ili file in the models directory
for file in models/*.ili; do
echo -e "Processing $file\n" >> ili2c.log
java -jar ili2c.jar "$file" >> ili2c.log 2>&1
echo "" >> ili2c.log
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment