source: trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles@ 7458

Last change on this file since 7458 was 7426, checked in by Daniela Dorner, 19 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/sh
2#
3# ========================================================================
4#
5# *
6# * This file is part of MARS, the MAGIC Analysis and Reconstruction
7# * Software. It is distributed to you in the hope that it can be a useful
8# * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
9# * It is distributed WITHOUT ANY WARRANTY.
10# *
11# * Permission to use, copy, modify and distribute this software and its
12# * documentation for any purpose is hereby granted without fee,
13# * provided that the above copyright notice appear in all copies and
14# * that both that copyright notice and this permission notice appear
15# * in supporting documentation. It is provided "as is" without express
16# * or implied warranty.
17# *
18#
19#
20# Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
21#
22# Copyright: MAGIC Software Development, 2000-2004
23#
24#
25# ========================================================================
26
27umask 0002
28
29ssh tape@dc07 chmod -R g+w /magic/datacenter/fromtape/rawdata/*
30# output for chmod with -v or -c (only changes)
31
32rawfiles=`find /magic/datacenter/fromtape/rawdata/ -name '*.*'`
33
34for rawfile in $rawfiles
35do
36# echo "file: "$rawfile
37# newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'`
38 newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'`
39# echo "new file: "$newrawfile
40 newdir=`dirname $newrawfile`
41# echo "newdir: "$newdir
42 if [ ! -d $newdir ]
43 then
44 echo "make dir "$newdir
45 mkdir -p $newdir
46 fi
47
48 mv -v $rawfile $newrawfile
49
50done
51
Note: See TracBrowser for help on using the repository browser.