use \000 in sed
Zhang Weiwu
weiwuzhang at hotmail.com
Thu Jan 29 08:22:48 PST 2004
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
More information about the freebsd-questions
mailing list