Wednesday, March 7, 2012

Unix Sort by Date in Text file

Data File

d10NVaR_Berm_Pll_AggrInfo_ST 03/05/2012
d10NVaR_Berm_Stress_New_PVs 03/05/2012
command line:
sort -r -t ' ' -nk2.7,2.10 -nk2.1,2.2 -nk2.4,2.5 called_jobs.txt > sorted_by_date.txt

No comments:

Post a Comment