On 20 Sep 2006, at 13:31 , Maarten Sneep wrote:
How can I prepare a grep pattern for the sort command that does this? I need the last word (without spaces), before the first tab.

If I understand you correctly,

(\w+)\t

IN:
Test1   Test1
Von Tester      Test3
de Test2        Test2
One Two Three   Fred
Two Zoos        Amy
Ziggy Allen     Test4

Out:
Ziggy Allen     Test4
Test1           Test1
de Test2        Test2
Von Tester      Test3
One Two Three   Fred
Two Zoos        Amy


--
"You can think and you can fight, but the world's always movin', and if you wanna stay ahead you gotta dance."


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to