Sunday, November 17, 2013

Re: replace specific character "^@" in a text file


On Nov 17, 2013 2:32 PM, <miloody@gmail.com> wrote:
>
> hi all:
> I try to eliminate "^@" show in my vim but fail.
> And I type
> "%s/^@//g"

I guess you typed two characters: ^ and @. This is incorrect. If you see such special symbols and do not know how to type them put the cursor on one of them and do "yl" to yank then "CTRL-R 0" to paste. This specific symbol may be inserted using CTRL-V CTRL-SPACE.

> "%s/$.*ehci_urb_done/ehci_urb_done/g"

WTF is $ doing here? It denotes end of line, of course nothing is matched after end of line.

> are in vain.
>
> Would anyone has the idea how to erase "^@"?
> appreciate your help,
>
> below is excerpted from the attachment.
> itd_submit 34022776 1 urb d7e37200 ep2in len 5120, 10 pkts 8 uframes [d940f240]
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
> itd_submit 34026535 1 urb d7e36e00 ep2in len 5120, 10 pkts 8 uframes [d940f240]
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ehci_urb_done 34040726 1 urb d7e37200 ep2in status 0 0 len 0/5120
> itd_submit 34041050 1 urb d7c77e00 ep2in len 5120, 10 pkts 8 uframes [d940f240]
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ehci_urb_done 34050667 1 urb d7e36e00 ep2in status 0 0 len 752/5120
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: