Hi all,
I have a text file with more than 10K+ lines in the following format.
I want to merge the text data in a single line as shown in the bottom.
Any sed/awk solution would be helpful.
Input file
--
21000Probability, Random Variables, and
Stochastic Processes / Athanasios
Papoulis
Hi Baskar, hope this awk will help you..
cat a1a
21000Probability, Random Variables, and
Stochastic Processes / Athanasios
Papoulis. : McGraw-Hill, Inc., 1995
21001 "
21002Microwave Devices and Circuits
/ Samuel Y.Liao. : Prentice-Hall of
India Private Limited, 1990
210
On 5/19/15, Meshach A wrote:
> Hi Baskar, hope this awk will help you..
>
> awk '{if($1 ~ /^[0-9]../){print "\n"; printf $0}else{printf $0}}' a1a
>
> or
>
> awk '{if($1 ~ /^[0-9][0-9][0-9][0-9][0-9]/){print "\n"; printf
> $0}else{printf $0}}' a1a
Thanks. Works perfectly. Is there anyway to remo