Create symbolic links to available data of step3c

Use the following script to find the missing units:
#!/bin/bash

#
# make_links.sh
#
# Created by Anar Manafov (A.Manafov@gsi.de)
#

START_PATH=/d/ceres04/step3c_links

files=$(cat presented.log | sort | uniq )


for line in $files; do   
prod=${line:18:7}
unit=${line:29:7}
file=${line:37:22}
# special production prod013N
echo $line | grep "prod013_12"
if [ $? -eq 0 ]; then
prod=$prod"N"
fi

ln_file="$START_PATH/$prod/$unit"
mkdir_cmd="mkdir -p $ln_file"
ln_cmd="ln -sf $line $ln_file"

echo "Linking: $ln_file --> $line"

eval $mkdir_cmd
eval $ln_cmd
done

-- AnarManafov - 18 Jun 2005
Topic revision: r3 - 2005-06-21, AnarManafov
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)