How to copy the value of the previous line if the current one is empty?

as mentioned

using take / skip / concat will help