IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2024, 8:27:02 AM (2 years ago)
Author:
eugene
Message:

cleaning up these scripts a bit (could be consolidated)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rebalance/rebalance.mana

    r42314 r42606  
    163163
    164164#   list files -x "/bin/ls -l `cat $filelist` | sort -k 5nr"
    165     list files -x "./neb_make_movelist.sh $filelist"
     165
     166#   this shell script returned the output of ls -l (filesize = word[4], filename = word[8])
     167#   list files -x "./neb_make_movelist.sh $filelist"
     168
     169#   this perl script returns the filename and size only
     170    list files -x "./neb_make_movelist.pl $filelist"
    166171
    167172    # generate subset list to match goal size
     
    170175    while (($Ntotal < $NremoveSub) && ($j < $files:n))
    171176      list word -split $files:$j
    172       $keep:$j = $word:8
    173       $Ntotal += $word:4
     177#     $keep:$j = $word:8
     178#     $Ntotal += $word:4
     179      $keep:$j = $word:0
     180      $Ntotal += $word:1
     181
    174182      # echo $word:4 $Ntotal : $NremoveSub $keep:$j
    175183      $j ++
Note: See TracChangeset for help on using the changeset viewer.