2020-02-17 07:34:33 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-02-21 17:18:52 +01:00
|
|
|
for MSG in $(find /tmp/xw_sms/ -type f); do
|
|
|
|
NOLOCK=$(echo $MSG | sed 's,.lock,,')
|
|
|
|
if [ $NOLOCK = $MSG ]; then
|
|
|
|
basename $(dirname "$MSG")
|
|
|
|
echo -n "${MSG}: "
|
|
|
|
head -n 1 $MSG
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# ls -l /tmp/xw_sms/*
|