2021-03-30 16:07:58 +00:00
|
|
|
#!/bin/sh
|
2021-04-11 20:47:51 +00:00
|
|
|
echo "$1" |
|
|
|
|
sed 's|\.sync/Archive/\(.\+\)\.[[:digit:]]\+|\1|;
|
|
|
|
s|\.sync/Archive/||;
|
|
|
|
s|\.stversions/\(.*\)~[[:digit:]]\+-[[:digit:]]\+|\1|;
|
|
|
|
s|\.sync-conflict-[[:digit:]]\+-[[:digit:]]\+-[[:alnum:]]\+||'
|
|
|
|
|
|
|
|
# TESTING
|
|
|
|
# echo "1-projects/.sync/Archive/meetings.1.txt
|
|
|
|
# 1-projects/.sync/Archive/meetings.txt
|
|
|
|
# data/.stversions/meeting~2020-01
|
|
|
|
# meeting.sync-conflict-2021-1925-P5K
|
|
|
|
# meeting.sync-conflict-2021-1925-PRK.txt" |
|