Board logo

標題: [操作疑難] linux shell or perl script 做比較DATA. [打印本頁]

作者: web_base    時間: 2013-10-28 22:05     標題: linux shell or perl script 做比較DATA.

TO ALL請手, 請問: 

 
1) process name / filename 假設係叫’abc’ ,  
2) abc係一個process,   唔同時間內, 個PROCESS行完,  出現三種況, 
error, failed or completed.     

問: 請問點樣可以搵到, ABC 雖然係有過ERROR, FAILED, 
但最終係完成成個PROCESS, 為COMPLETED STATUS呢? 
唔可以就咁grep complete status,  因想知道個process有無曾經死過, 然後有人submit 過,並且最後完成。   

abc - 28/10/2013 11:00:21   error
abc - 28/10/2013  12:14:33  failed
abc  - 29/10/2013  13:16:45  completed

請問如果用shell or perl scripts,  how to do the compare date and time?  

thx all.
作者: 夢想藍空    時間: 2013-11-10 11:53

你想點compare? 首先你要有一樣野分到每一個request出黎, 咁你先可以 compare wo
作者: twfcc    時間: 2013-11-10 12:51

比較DATA嘅內容?還是大少?如果係前者,man一下grep,後者man一下diff,如果要更多功能,寫bash script,可能會用上sed/awk

(Sent from HKEPC iPhone app)





歡迎光臨 電腦領域 HKEPC Hardware (https://h0.hkepc.com/forum/) Powered by Discuz! 7.2