Question: Hello! Using bash-Linux I have a catalogue (with a header) of dates. What I want is, when the year change (from 2015 to 2016), I

Hello!

Using bash-Linux

I have a catalogue (with a header) of dates. What I want is, when the year change (from 2015 to 2016), I want to print a divide line ( ''*********************************************************************'') between them

An example of my current catalogue''

yyyy

2015 01 01

2015 01 02

2015 05 10

2016 01 02

2016 01 03

and what I want is

yyyy

2015 01 01

2015 01 02

2015 05 10

*********************

2016 01 02

2016 01 03

How do I do that?

Thank you in advance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!