Date: Fri, 30 Jan 2004 00:22:45 +0800 From: "Zhang Weiwu" <weiwuzhang@hotmail.com> To: dnelson@allantgroup.com Cc: questions@freebsd.org Subject: Re: use \000 in sed Message-ID: <Law11-F24kd4grUYzTB00027121@hotmail.com>
next in thread | raw e-mail | index | archive | help
Dan Nelson wrote: >I'm not sure that sed can process \123-style octal characters, since it >already uses the \ character for backreferences. Since you're only >replacing one letter, you can use tr: > >manpath | tr ':' '\000' | xargs -0 ls > oh Brilliant, i almost forgot this command! But once I need to work with complex replacement, do I have to use the two commands together? #cmd... | tr .... | sed ... _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Law11-F24kd4grUYzTB00027121>