aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/model/swagger/fixModuleUri.sh
blob: fae3872c10f43e06bb200d22c73f301444ac7153 (plain)
1
2
3
4
5
#!/bin/sh

mv $2 $2.backup
cat $2.backup | sed -e 's/'$1':/_&/1' -e 's/\([^_]\)'$1':/\//g' -e 's/_\('$1':\)/\1/' > $2
rm $2.backup