Re: Sort within VI with parameters

Jay Strauss <[email protected]> Fri, 24 Jun 2011 07:46:52 -0500
Newsgroups gmane.org.user-groups.luni.tech
Message-ID <[email protected]>
Yeah that's what I think too

I've tried every incantation ( and yours) with no success

Thanks
Jay

Sent from my iPhone

On Jun 23, 2011, at 3:13 PM, [email protected] wrote:

> 
>> I can't figure out the proper incantation
>> 
>> <esc>:%!sort -t| -k2,2
> 
> It looks like your field separator is getting interpreted as a 
> shell pipe character. Try escaping it like so:
> 
> <esc>:%!sort -t\| -k2,2
> 
> Or perhaps quoting it:
> 
> <esc>:%!sort -t'|' -k2,2
> 
> Colin
> 
> -- 
> Linux Users Of Northern Illinois (Chicago) - Technical Discussion 
> http://luni.org/mailman/listinfo/luni
-- 
Linux Users Of Northern Illinois (Chicago) - Technical Discussion 
http://luni.org/mailman/listinfo/luni