I am new bee for shell script. Please redirect me to correct post if this question is redundant.
I have file.txt which has text like below and want to change the 2nd row in file
Property1=0
Property2=0 50 14 1/1 * ? *
Property3=0
I want to replace 2nd line to change 50 14 to current time, file will look like
Property1=0
Property2=0 58 15 1/1 * ? *
Property3=0
and next time it will look like
Property1=0
Property2=0 03 16 1/1 * ? *
Property3=0
Please help me how to change 2nd line.