#!/bin/bash
cd ~
grep "Starting internet stream: " .firestorm/celeste_python.avination/chat*.txt .firestorm-/celeste_python/chat*.txt .firestorm/celeste_python/chat*.txt .firestorm-/celeste_python.second_life/chat*.txt .firestorm/celeste_python.second_life/chat*.txt .firestorm-/celestialangela_resident/chat*.txt .firestorm/celestialangela_resident/chat*.txt .firestorm-/logs/Firestorm.log .firestorm/logs/Firestorm.log .inworldz/celestial_angela/chat*.txt .inworldz/logs/InWorldz.log \
| sed 's/^.*Starting internet stream: // ; s/\/$// ; s/ .*$//' > /tmp/shoutcast2sl.$$.txt
cat ~/playlists/shoutcast2sl.txt >> /tmp/shoutcast2sl.$$.txt
# remove trailing ^Ms from entries:
dos2unix -q /tmp/shoutcast2sl.$$.txt
sort -u /tmp/shoutcast2sl.$$.txt \
> ~/playlists/shoutcast2sl.txt
for f in ~/.firestorm/cache/*.dsf /var/tmp/firestorm.*/*.dsf ;do
rsync -auvzH $f /home/audio/wav/`echo $(basename $f) | sed 's/dsf$/wav/'`
done
exit 0 # yes we hide errors such as there are no files to copy
syntax highlighted by Code2HTML, v. 0.9.1