Changeset 2268 for palm/trunk/SCRIPTS
- Timestamp:
- Jun 9, 2017 10:34:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r2262 r2268 27 27 # ----------------- 28 28 # $Id$ 29 # bugfix for calculating cycle numbers for output files in r2261 30 # 31 # 2262 2017-06-08 14:52:23Z raasch 29 32 # bugfix for r2261 30 33 # … … 1404 1407 # check if there is an extension 1405 1408 extension=${basefilename##*.} 1406 if [[ "$extension" = "$ extin[$i]" ]]1409 if [[ "$extension" = "${extout[$i]}" ]] 1407 1410 then 1408 basefilename=${basefilename &.*}1411 basefilename=${basefilename%.*} 1409 1412 fi 1410 1413 … … 1423 1426 fi 1424 1427 1425 # cycle=$(echo $zeile | cut -f2 -d".")1426 # if [[ "$cycle" = "$zeile" || "$cycle" = ${extout[$i]} ]]1427 # then1428 # (( icycle = 1 ))1429 # else1430 # (( icycle = $cycle + 1 ))1431 # fi1432 # if (( icycle > maxcycle ))1433 # then1434 # (( maxcycle = icycle ))1435 # fi1436 1428 done <filelist 1437 1429 rm filelist … … 1460 1452 1461 1453 (( cycnum[$i] = maxcycle )) 1454 echo "### file \"$filename\" will get cycle ${cycnum[$i]}" 1462 1455 pathout[$i]=$filename 1463 1456
Note: See TracChangeset
for help on using the changeset viewer.