csl-clio/Utilitaires/get-filters.sh

13 lines
225 B
Bash
Raw Normal View History

2020-12-21 10:41:07 +00:00
#!/bin/bash
FILTERS_FILE="$1"
while read -r filter ; do
if [ "${filter##*.}" == lua ] ; then
filterCall='-L'
else
filterCall='--filter'
fi
echo "$filterCall" "$filter"
done < "$FILTERS_FILE"