> cmd.exe does not handle single quotes, so you have to enclose the whole
> argument to awk with double quotes. awk does not seem to accept single
> quotes either (I'm not sure, because I don't normally use awk), so you
> have to put double quotes around test= , too. The problem is now: How
> to put quotes inside quotes? One (the?) solution: Put everything except
> the quotes inside quotes and escape the quotes that need to be there
> for awk. The escape char in cmd.exe is a caret, so you finally get this
> command:
>
> :r !awk "BEGIN { print "^""test="^"" }"
That is nasty. I wouldn't remember what that means a couple
of hours later...
regards,
--
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
No comments:
Post a Comment