Changeset 8568 for trunk/MagicSoft/Cosy
- Timestamp:
- 06/17/07 11:04:33 (18 years ago)
- Location:
- trunk/MagicSoft/Cosy/tpoint
- Files:
-
- 14 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tpoint/joinfiles.sh
r8567 r8568 4 4 { 5 5 echo 6 echo "Usage: $0 starg|tpoint mm yyyy"6 echo "Usage: $0 starg|tpoint yyyy mm" 7 7 echo 8 8 echo " starg|tpoint which kind of file you are going to join." 9 echo " yyyy year you want to join in four digit notation." 9 10 echo " mm month you want to join in two digit notation." 10 echo " yyyy year you want to join in four digit notation."11 11 echo 12 12 } … … 20 20 fi 21 21 22 if ! [ `echo $ 3| wc -c` -eq 5 ]22 if ! [ `echo $2 | wc -c` -eq 5 ] 23 23 then 24 24 usage … … 28 28 fi 29 29 30 if [ `echo $ 2| wc -c` -gt 3 ]30 if [ `echo $3 | wc -c` -gt 3 ] 31 31 then 32 32 usage … … 36 36 fi 37 37 38 year=$ 339 month=`printf %02d $ 2`38 year=$2 39 month=`printf %02d $3` 40 40 type=$1 41 41 … … 76 76 tac $path/$file | head -n -3 | tac >> $output 77 77 done 78 79 echo Done. 80 echo
Note:
See TracChangeset
for help on using the changeset viewer.