mirror of
https://github.com/starr-dusT/tzdb_to_nx
synced 2024-03-05 21:18:52 -08:00
15 lines
218 B
Bash
15 lines
218 B
Bash
#/bin/bash
|
|
set -e
|
|
directory=$1
|
|
tzif_list=$2
|
|
|
|
truncate -s 0 $tzif_list
|
|
|
|
for i in `find $directory -type f`; do
|
|
header=`head -c 4 $i`
|
|
if [ "$header" == "TZif" ]; then
|
|
echo "$i" >> $tzif_list
|
|
fi
|
|
done
|
|
|