8 lines
223 B
Bash
8 lines
223 B
Bash
|
#!/bin/bash
|
||
|
ARCHIVE=html5_events_archive.txt
|
||
|
if [ -f "$ARCHIVE" ]; then
|
||
|
echo >&2 "$ARCHIVE already exists!"
|
||
|
exit 1
|
||
|
fi
|
||
|
cat historical/*_events.txt | sort | uniq | egrep -v '^only$' > "$ARCHIVE"
|
||
|
echo "$ARCHIVE generated."
|