Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
qa
/
workunits
/
rename
/
pri_rem.sh
1
#!/bin/sh -ex
2
3
dotest() {
4
src=$1
5
desti=$2
6
destdn=$3
7
n=$4
8
9
touch ./$src/src$n
10
touch ./$desti/desti$n
11
ln ./$desti/desti$n ./$destdn/destdn$n
12
13
mv ./$src/src$n ./$destdn/destdn$n
14
}
15
16
17
# srcdn=destdn=desti
18
dotest 'a' 'a' 'a' 1
19
20
# destdn=desti
21
dotest 'b' 'a' 'a' 2
22
23
# srcdn=destdn
24
dotest 'a' 'b' 'a' 3
25
26
# srcdn=desti
27
dotest 'a' 'a' 'b' 4
28
29
# all different
30
dotest 'a' 'b' 'c' 5
31