I have a text file, where records are split on two lines. I would like to put them on one line. The records look something like this:
2013-07-29
apt-get install git
2013-07-29
apt-get install rsync
2013-07-31
apt-get install nmap
2013-08-02
apt-get install cifs-utils
2013-08-05
apt-get install telnet
I would like to get the following:
2013-07-29 apt-get install git
2013-07-29 apt-get install rsync
2013-07-31 apt-get install nmap
2013-08-02 apt-get install cifs-utils
2013-08-05 apt-get install telnet
I tried with sed
, but I am unable to match two lines. Is there some trick in sed
, or is there some better tool ?