خرید بک لینک

Vote count: 0

I have problem with how to sort by line on my text file. For example i have one file the name is a.txt on the a.txt i have 4 line:
DATE,EVENT,TYPE,
2016-07-01 14:43:17,Communication lost,UPS exteal event
2016-07-01 14:38:59,UPS power on immediately,UPS exteal event
2016-07-01 14:38:04,AC recovery,Input event

so i want to attempt on another file, but on the another file the line must be sorted by datetime, the new datetime is on the last line and Date, Event, Type still on the first line

Thank You, i hope somebody can help me.

asked 15 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 15 تير 1395 ساعت: 10:37

صفحه بندی