awk script row to column

Hi..

I have data :

Report testing1 20180419 08:00
Report testing2 20180419 07:35
Report testing 20180419 08:01
Source = data1
Report testing4 20180419 08:05
Source = data1
Report testing5 20180419 08:10
Source = data2
Report testing6 20180419 08:01
Report testing7 20180419 08:19
Report testing8 20180419 08:15
Source = data2

Output will be :

Report testing1 20180419 08:00
Report testing2 20180419 07:35
Report testing 20180419 08:01 Source = data1
Report testing4 20180419 08:05 Source = data1
Report testing5 20180419 08:10 Source = data2
Report testing6 20180419 08:01
Report testing7 20180419 08:19
Report testing8 20180419 08:15 Source = data2

Need help for the script awk.

Thanks all

awk '
NR > 1 {printf ($0 ~ /^Source/) ? " " : "\n"; }
{printf $0}
END { if ($0 ~ /^Source/) print ""}
' data
1 Like

i still didn't get it bro

WHAT don't you get? Please be way more eloquent, showing non-satisfying output and error messages. rdrtx1's proposal works for me.

1 Like

im so sorry my friend.. i just wrong copy paste..
its worked now..

thanks