Here is all in all coede now.
sed 's/\(.*T\)\(.*\+\)\(.*\:00\,\)\(.*\)/\1 \2\,\4/g;s/T//g;s/\+//g' | sort -t- -k 3n
Output will be as follows.
2013-12-5 02:20:08,0,0,0,0,0,254,0,0,0,0,0,254,0,0,0,0,0,254,0,0,0,0,0,254,false
2013-12-6...
Sorry just want to add the sorting stuff as it is suggested in previous posts same we can add after running script as follows.
ksh check_data_specific_form.ksh | sort -t- -k 1,1n -k2,2 -k3,3n
Thanks,
R. Singh
Hello,
Following may help on same.
sed 's/\(.*T\)\(.*\+\)\(.*\:00\,\)\(.*\)/\1 \2\,\4/g;s/T//g;s/\+//g' check_data_specific_form
Where check_data_specific_form is the Input file name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.