خرید بک لینک

Hi Guys,

I was wondering about the sort command.
Is there a way I can use sort to arrange the tasks on this list by due date yet keep them grouped according to project?
I know I can set the --field-separator=: and then sort by the second column to put the dates in the correct order. What I don't know is how to keep the projects grouped together.

That is can I go from this:

Code:

=====  Projects  =====

---  EAP  ---
Interviews due:2016-03-25 at 10:00
Interviews due:2016-03-29 at 10:00
Read the novel due:2016-03-27
Interviews due:2016-03-22
Interviews due:2016-03-23


---  KIDS  ---
Fritids due:2016-03-29
Fritids due:2016-04-01
Ledig due:2016-03-30
Ledig due:2016-03-31


---  Proofreading  ---
Eva Hämberg due:2016-04-04


---  Transcription  ---
Perman due:2016-03-28
Perman due:2016-03-29
Perman due:2016-04-01

To this:

Code:

=====  Projects  =====

---  EAP  ---
Interviews due:2016-03-22
Interviews due:2016-03-23
Interviews due:2016-03-25 at 10:00
Read the novel due:2016-03-27
Interviews due:2016-03-29 at 10:00

---  KIDS  ---
Fritids due:2016-03-29
Ledig due:2016-03-30
Ledig due:2016-03-31
Fritids due:2016-04-01

---  Proofreading  ---
Eva Hämberg due:2016-04-04

---  Transcription  ---
Perman due:2016-03-28
Perman due:2016-03-29
Perman due:2016-04-01

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 4 فروردين 1395 ساعت: 5:54

صفحه بندی