Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulate column of data using sed 1

Status
Not open for further replies.

BeadleBlade

Technical User
Jul 21, 2005
8
GB
Hi there,

I have a flat file with a column of data i.e.

a
b
c
d

I am wanting to change this using sed so that the characters all appear on the same line i.e.

abcd etc.

Anyone got any ideas on this? Much appreciated (and will impress my new boss ;o))

Cheers

Will
 
Or...
Code:
cat myfile | paste -d'\0' - - - -
Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top