Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 23:04:26 +0000
From:      "How Can ThisBe" <howcanthisbe300@hotmail.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   sed question
Message-ID:  <F146omf5hOV7gZPJGpu000092ba@hotmail.com>

next in thread | raw e-mail | index | archive | help
Not directly FreeBSD question, however. Is it possible with sed (or awk)
to turn this:
i/in/1 2/3 4 5 6
into
i/in/1 2/3456

The same syntax would also need to work on:
i/in/1 2/x y z  (result would be i/in/1 2/xyz)
i/in/1 2  (result would be i/in/12)

The closest I have gotten it to is:
i/in/1 2/3 4 56 with sed "s/\(.*\) /\1/g"

(which will work, just needs to be repeated. I do not know awk at all btw)


_________________________________________________________________
Hotmail now available on Australian mobile phones. Go to  
http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F146omf5hOV7gZPJGpu000092ba>