[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] regex assistance



Hello, linux neighbors,

I am a regular expression amateur.  I have a text file with a bunch of 
numbers, which looks like this:

00
01
02
03
04

and I need to convert it, so that each number is on one line, and 
separated with the | pipe, so:

00 | 01 | 02 | 03 | 04

If it's not too much trouble, could someone script-fu something up to 
solve my problem?

Thanks much,
Robert