#! /bin/csh -ef # split date # ccyymmdd # into # 'ccyy mm dd' # set ccyymmdd = $1 set ccyy = `echo $ccyymmdd | cut -c 1-4` set mm = `echo $ccyymmdd | cut -c 5-6` set dd = `echo $ccyymmdd | cut -c 7-8` echo "$ccyy $mm $dd"