[Gllug] Processing characters in a file

Bruce Richardson itsbruce at uklinux.net
Tue Jan 24 18:20:13 UTC 2006


On Tue, Jan 24, 2006 at 12:18:03AM +0000, Matthias wrote:
> Hi,
> 
> I need to process a file containing comma delimited integers with line breaks 
> and { } brackets scattered at random through the file. I wish to remove all 
> line breaks and brackets from the file and to then place new line breaks at 
> fixed interval (say every 100 integer). Is sed the tool you would use? any 
> hints welcome.

You should be able to do it with just sed and fmt.

-- 
Bruce

Remember you're a Womble.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20060124/48429b3b/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list