On Apr 23, 2012, at 9:43 PM, Allen Hancock wrote:

> Given 3 columns of text with tabs in between, what grep pattern (I assume 
> that's the best way to handle this) would select the first character after 
> the 2nd tab?
> 
> 112   000     PDQ
> 987   000     DEF
> 090   000     XYZ
> 678   000     ABC
> 
> would become
> 678   000     ABC
> 987   000     DEF
> 112   000     PDQ
> 090   000     XYZ

Use Text -> Sort Lines...

        Check "Sort using pattern"
        Searching pattern:  ^(.+?)\t(.+?)\t(.+)
        Sort using:  Specific sub-patterns:
                \3

-- 
Rod Buchanan
KDSI / Kelly Supply Co / ISCO
308 382-8764 x220

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to