1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__task-lalis/SOURCES/sync_check.sh

19 lines
366 B
Bash
Raw Normal View History

2019-03-22 18:19:38 +01:00
#!/usr/bin/sh
#./identPC.sh
/usr/bin/kate ./checklist.txt
grep -is -m 2 "numéro de série" ./identification.txt >tmp.txt
while read LIGNE
do
TMP=${LIGNE##*}
if [ "$TMP" != "Number" ];then
DIRNAME="$DIRNAME$TMP"
break
else
DIRNAME="CM_"
fi
done < tmp.txt
rm -f tmp.txt
mkdir $DIRNAME
rsync --port 10073 -aP *.txt "lalis69.ddns.net::lalis-ordis/$DIRNAME"