home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!inews.Intel.COM!ilx018.intel.com!ilws14!steed
- From: steed@ilws14.intel.com (Ze'ev Shtadler)
- Newsgroups: comp.lang.perl
- Subject: Re: How to do commas in sed,awk or C
- Message-ID: <1jv2u3INN18g6@ilx018.intel.com>
- Date: 24 Jan 93 21:49:55 GMT
- References: <1993Jan23.115142.27369@zooid.guild.org>
- Reply-To: steed@iil.intel.com (Ze'ev Shtadler)
- Organization: Intel Corporation
- Lines: 8
- NNTP-Posting-Host: ilws14.intel.com
-
- The loop can be done using sed's `t' command:
-
- sed -e ':l' -e 's/\(.*[0-9]\)\([0-9][0-9][0-9]\)/\1,\2/' -e 't l'
- --
- Ze'ev "Steed" Shtadler, Design Technology, IDC2-41,
- INTeL Israel, P.O. Box 1659, Haifa 31015, ISRAEL.
- steed@iil.intel.com Work: +972-4-355935 FAX: +972-4-355666
- iNET: 8-435-5935
-