- Timestamp:
- 05/09/07 17:05:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/movingsubsystemfiles
r7460 r8482 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 622 # Copyright: MAGIC Software Development, 2000-2007 23 23 # 24 24 # … … 45 45 for subsysfile in ${subsysfiles[@]} 46 46 do 47 newsubsysfile=`echo $subsysfile | sed -e 's/datacenter\/fromtape/subsystemdata/g' -e 's/daqlog/daq__/g' -e 's/ccdata/cc/g' -e 's/cacodata/caco/g' -e 's/_/\//1' -e 's/_/\//1' -e 's/\/\///g'`48 newdir=`dirname $newsubsysfile`49 if [ ! -d $newdir ]50 then51 echo "make dir "$newdir52 mkdir -p $newdir53 fi47 newsubsysfile=`echo $subsysfile | sed -e 's/datacenter\/fromtape/subsystemdata/g' -e 's/daqlog/daq__/g' -e 's/ccdata/cc/g' -e 's/cacodata/caco/g' -e 's/_/\//1' -e 's/_/\//1' -e 's/\/\///g'` 48 newdir=`dirname $newsubsysfile` 49 if [ ! -d $newdir ] 50 then 51 echo "make dir "$newdir 52 mkdir -p $newdir 53 fi 54 54 55 mv -v $subsysfile $newsubsysfile55 mv -v $subsysfile $newsubsysfile 56 56 done 57 57
Note:
See TracChangeset
for help on using the changeset viewer.