I get a lot of tabular text data I need to edit on a regular basis. Excel mungs the data, where BBEdit just works.
However, I frequently need to sort the lines by the second/third/etc column, as defined by tabs in between the columns. I'm not much on grep, so if someone would help out with the following two situations, I would be grateful: 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 given a column of part numbers which all begin 000-, how could I sort on the 5th character? 000-XYZ 000-PDQ 000-ABC 000-DEF would become 000-ABC 000-DEF 000-PDQ 000-XYZ Thank so much in advance! -Allen -- 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 bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>