script to find out missing units

script base on the list above
#!/bin/bash

#
# check_units.sh
#
# Created by Anar Manafov (A.Manafov@gsi.de)
#
#
#
MINPARAMS=2


is_missing=0

if [ $# -lt "$MINPARAMS" ]
then
echo "check_units: You must specify the options."
echo "example: './check_units.sh orig_units.list  '/d/ceres0*/step3c''"
else

file=$(cat  $1 | awk '{printf "/%s*/%s/\n", $2, $1}' )
for line in $file
do
found=$(ls -1 $2/$line)
if [ $? -ne 0 ] 
then
# missing units
echo $line
$is_missing=1
fi
done

if [ $is_missing -eq 0 ]
then
echo "There are no missing units found."
fi

fi

issue the following command to find out the missing units:
./check_units.sh orig_units.list  '/d/ceres0*/step3c'

List of all required units for step3c prod.

cat avaliable_root_files.lst | awk -F / '{print $6"\t"$5}' | sort | uniq

orig_units.list:
unit001 prod013_11
unit002 prod013_11
unit003 prod013_11
unit004 prod013_11
unit006 prod013_11
unit007 prod013_11
unit008 prod013_11
unit009 prod013_11
unit010 prod013_11
unit011 prod013_11
unit012 prod013_11
unit013 prod013_11
unit014 prod013_11
unit015 prod013_11
unit016 prod013_11
unit017 prod013_11
unit018 prod013_11
unit019 prod013_11
unit020 prod013_11
unit021 prod013_11
unit022 prod013_11
unit023 prod013_11
unit024 prod013_11
unit024 prod014_11
unit025 prod013_11
unit026 prod013_11
unit027 prod013_11
unit028 prod013_11
unit029 prod013_11
unit030 prod013_11
unit031 prod013_11
unit032 prod013_11
unit033 prod013_11
unit034 prod013_11
unit035 prod013_11
unit036 prod013_11
unit037 prod013_11
unit038 prod013_11
unit039 prod013_11
unit040 prod013_11
unit041 prod013_11
unit042 prod013_11
unit043 prod013_11
unit044 prod013_13
unit045 prod013_11
unit046 prod013_13
unit047 prod013_11
unit048 prod013_11
unit049 prod013_11
unit050 prod013_11
unit051 prod013_13
unit052 prod013_13
unit053 prod013_13
unit054 prod013_13
unit055 prod013_11
unit056 prod013_13
unit057 prod013_13
unit058 prod013_13
unit059 prod013_13
unit060 prod013_11
unit061 prod013_11
unit061 prod013_13
unit062 prod013_13
unit063 prod013_11
unit064 prod013_11
unit065 prod013_11
unit066 prod013_11
unit067 prod013_11
unit068 prod013_11
unit069 prod013_11
unit070 prod013_11
unit071 prod013_11
unit072 prod013_11
unit073 prod013_11
unit074 prod013_13
unit075 prod013_11
unit076 prod013_11
unit077 prod013_11
unit078 prod013_11
unit079 prod013_11
unit080 prod013_11
unit081 prod013_11
unit082 prod013_11
unit083 prod013_11
unit084 prod013_11
unit085 prod013_11
unit086 prod013_11
unit087 prod013_11
unit088 prod013_11
unit089 prod013_11
unit090 prod012_11
unit091 prod012_11
unit092 prod012_11
unit093 prod012_11
unit094 prod012_11
unit095 prod012_14
unit096 prod012_11
unit097 prod012_14
unit098 prod012_11
unit099 prod012_11
unit100 prod012_11
unit101 prod012_11
unit102 prod012_11
unit103 prod012_11
unit104 prod012_11
unit105 prod012_11
unit106 prod012_11
unit107 prod012_11
unit108 prod012_11
unit109 prod012_11
unit110 prod012_11
unit111 prod012_11
unit112 prod012_11
unit112 prod012_13
unit113 prod012_14
unit114 prod012_11
unit115 prod012_11
unit116 prod012_11
unit117 prod012_11
unit118 prod012_13
unit119 prod012_13
unit121 prod012_13
unit122 prod012_13
unit123 prod012_13
unit124 prod012_13
unit125 prod012_13
unit126 prod012_13
unit127 prod012_13
unit127 prod012_14
unit128 prod012_13
unit129 prod012_13
unit130 prod012_13
unit132 prod012_13
unit134 prod012_13
unit135 prod012_11
unit136 prod012_13
unit137 prod012_13
unit138 prod012_13
unit139 prod012_13
unit140 prod012_13
unit141 prod012_13
unit142 prod012_13
unit143 prod012_13
unit144 prod012_13
unit145 prod012_13
unit146 prod012_13
unit147 prod012_13
unit148 prod012_13
unit149 prod012_13
unit150 prod012_11
unit152 prod012_11
unit153 prod012_11
unit154 prod012_11
unit155 prod012_11
unit156 prod012_11
unit157 prod012_11
unit158 prod012_11
unit159 prod012_14
unit160 prod012_13
unit161 prod012_13
unit162 prod012_13
unit163 prod012_13
unit164 prod012_13
unit164 prod012_14
unit165 prod012_11
unit166 prod012_11
unit167 prod012_13
unit168 prod012_13
unit168 prod012_14
unit169 prod012_13
unit170 prod012_14
unit171 prod012_13
unit172 prod012_13
unit173 prod012_13
unit174 prod012_13
unit175 prod012_13
unit176 prod012_13
unit177 prod012_13
unit178 prod012_13
unit178 prod012_14
unit179 prod012_13
unit180 prod012_11
unit181 prod012_11
unit182 prod012_11
unit183 prod012_11
unit184 prod012_14
unit185 prod012_13
unit186 prod012_11
unit187 prod012_11
unit188 prod012_11
unit189 prod012_13
unit190 prod012_13
unit191 prod012_13
unit192 prod012_13
unit193 prod012_13
unit194 prod012_11
unit195 prod012_13
unit196 prod012_13
unit197 prod012_13
unit198 prod012_13
unit199 prod012_13
unit200 prod012_11
unit201 prod012_13
unit202 prod012_13
unit203 prod012_13
unit204 prod012_13
unit205 prod012_13
unit206 prod012_13
unit207 prod012_13
unit208 prod012_13
unit209 prod012_13
unit210 prod012_11
unit211 prod012_11
unit212 prod012_11
unit213 prod012_11
unit214 prod012_11
unit215 prod012_11
unit216 prod012_11
unit217 prod012_11
unit218 prod012_13
unit219 prod012_13
unit220 prod012_13
unit221 prod012_11
unit222 prod012_13
unit223 prod012_13
unit224 prod012_13
unit225 prod013_12
unit226 prod013_12
unit227 prod013_12
unit228 prod013_12
unit229 prod013_12
unit230 prod013_12
unit231 prod013_12
unit232 prod013_12
unit233 prod013_12
unit234 prod013_12
unit235 prod013_12
unit236 prod013_12
unit238 prod013_12
unit239 prod013_12
unit240 prod013_12
unit241 prod013_12
unit242 prod013_12
unit243 prod013_12
unit244 prod013_12
unit245 prod013_12
unit246 prod013_12
unit247 prod013_12
unit248 prod013_12
unit249 prod013_12
unit250 prod013_12
unit251 prod013_12
unit252 prod013_12
unit253 prod013_12
unit254 prod013_12
unit255 prod013_12
unit256 prod013_12
unit257 prod013_12
unit258 prod013_12
unit259 prod013_12
unit261 prod013_12
unit262 prod013_12
unit263 prod013_12
unit264 prod013_12
unit265 prod012_11
unit266 prod012_11
unit267 prod012_14
unit268 prod012_11
unit269 prod012_11
unit270 prod012_11
unit271 prod012_13
unit272 prod012_13
unit273 prod012_13
unit274 prod012_13
unit275 prod012_13
unit276 prod012_13
unit277 prod012_13
unit278 prod012_13
unit279 prod012_13
unit280 prod012_14
unit281 prod012_13
unit282 prod012_13
unit283 prod012_13
unit284 prod012_13
unit285 prod012_13
unit286 prod012_13
unit287 prod012_13
unit288 prod012_13
unit289 prod012_13
unit290 prod012_13
unit291 prod012_13
unit292 prod012_13
unit293 prod012_13
unit294 prod012_13
unit295 prod012_13
unit296 prod012_13
unit297 prod012_13
unit298 prod012_13
unit299 prod012_13
unit300 prod012_11
unit301 prod012_11
unit302 prod012_11
unit303 prod012_11
unit304 prod012_11
unit305 prod012_14
unit306 prod012_13
unit307 prod012_13
unit308 prod012_13
unit309 prod012_13
unit310 prod012_13
unit311 prod012_13
unit312 prod012_13
unit313 prod012_13
unit314 prod012_13
unit315 prod012_13
unit316 prod012_13
unit317 prod012_13
unit318 prod012_13
unit319 prod012_13
unit320 prod012_13
unit321 prod012_13
unit322 prod012_13
unit323 prod012_13
unit324 prod012_13
unit325 prod012_13
unit326 prod012_13
unit327 prod012_13
unit328 prod012_13
unit329 prod012_13
unit330 prod012_11
unit331 prod012_14
unit332 prod012_14
unit333 prod012_14
unit334 prod012_14
unit335 prod012_14
unit336 prod012_14
unit337 prod012_13
unit338 prod012_13
unit339 prod012_13
unit340 prod012_13
unit341 prod012_13
unit342 prod012_13
unit343 prod012_13
unit344 prod012_13
unit345 prod012_13
unit346 prod012_13
unit347 prod012_13
unit348 prod012_13
unit349 prod012_13
unit350 prod012_13
unit351 prod012_13
unit352 prod012_14
unit353 prod012_13
unit354 prod012_13
unit355 prod012_13
unit356 prod012_13
unit357 prod012_13
unit358 prod012_13
unit359 prod012_11
unit360 prod012_11
unit361 prod012_11
unit362 prod012_11
unit363 prod012_11
unit365 prod012_14
unit366 prod012_13
unit367 prod012_13
unit368 prod012_13
unit369 prod012_13
unit370 prod012_11
unit371 prod012_13
unit372 prod012_13
unit373 prod012_13
unit374 prod012_13
unit375 prod012_13
unit376 prod012_13
unit377 prod012_13
unit378 prod012_13
unit379 prod012_13
unit380 prod012_13
unit381 prod012_13
unit382 prod012_13
unit383 prod012_13
unit384 prod012_13
unit385 prod012_11
unit386 prod012_13
unit387 prod012_13
unit388 prod012_13
unit389 prod012_13
unit390 prod012_11
unit391 prod012_11
unit392 prod012_14
unit393 prod012_11
unit394 prod012_11
unit395 prod012_11
unit396 prod012_11
unit397 prod012_13
unit398 prod012_13
unit399 prod012_13
unit400 prod012_13
unit401 prod012_11
unit402 prod012_11
unit403 prod012_13
unit404 prod012_13
unit405 prod012_13
unit406 prod012_13
unit407 prod012_13
unit408 prod012_13
unit409 prod012_13
unit410 prod012_13
unit411 prod012_13
unit412 prod012_13
unit413 prod012_13
unit414 prod012_11
unit415 prod012_13
unit415 prod014_11


-- AnarManafov - 17 May 2005
Topic revision: r5 - 2005-06-20, 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)