Changeset 8568


Ignore:
Timestamp:
06/17/07 11:04:33 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/tpoint
Files:
14 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/tpoint/joinfiles.sh

    r8567 r8568  
    44{
    55   echo
    6    echo "Usage: $0 starg|tpoint mm yyyy"
     6   echo "Usage: $0 starg|tpoint yyyy mm"
    77   echo
    88   echo "   starg|tpoint  which kind of file you are going to join."
     9   echo "   yyyy          year you want to join in four digit notation."
    910   echo "   mm            month you want to join in two digit notation."
    10    echo "   yyyy          year you want to join in four digit notation."
    1111   echo
    1212}
     
    2020fi
    2121
    22 if ! [ `echo $3 | wc -c` -eq 5 ]
     22if ! [ `echo $2 | wc -c` -eq 5 ]
    2323then
    2424  usage
     
    2828fi
    2929
    30 if [ `echo $2 | wc -c` -gt 3 ]
     30if [ `echo $3 | wc -c` -gt 3 ]
    3131then
    3232  usage
     
    3636fi
    3737
    38 year=$3
    39 month=`printf %02d $2`
     38year=$2
     39month=`printf %02d $3`
    4040type=$1
    4141
     
    7676   tac $path/$file | head -n -3 | tac >> $output
    7777done
     78
     79echo Done.
     80echo
Note: See TracChangeset for help on using the changeset viewer.