newline separated grep output
Hello,
I'm trying to filter a string so that I can sort it. The problem is
that these strings appear after each other and I can't use cut/sort
that way.
Example:
newArray(329,30,11,7255,0,7255,77,26137444,11269,'GD','test','test',
83246,'test',
211300,365465,13206,108,17312303,143,3232130,45,6224111,0);\x0d\x0a\x0d
\x0aaP[12]
I would like the have the results to be separated by newline so I can
use 'cut' and 'sort'. I only need "329,30,11,7255". I don't know if
grep is able to do that, haven't found anything in the manpage. Maybe
there is an easier way?
Thanks,
chris
.
Relevant Pages
- Re: vba sort a query
... that i have on a 'filter' button so when I click the filter the ... comboboxes but sort by what is selected in the sortby combobox. ... the choices in the sortby combobox are Branch, vendor, item and year ... Dim strdoc As String ... (microsoft.public.access.formscoding) - Re: VB6 LISTBOX problem
... Have a look at the code below, can you do a sort that is faster ... There are of course all sorts of ways of sorting stuff, especially stuf that is "linked together" as in your UDTs, but to prove the following code sorts it in exactly the same way that your own original code does so, by concatenating all three items of each element into a composite string exactly as you are already doing, but instead of dumping those composite strings into a ListBox it dumps them into a VB string array. ... Private Type SAFEARRAY1D ... Dim StPtr As Long, VAs String, pVAs Long ... (microsoft.public.vb.general.discussion) - Re: mail merge selection criteria
... You're in the "Filter and Sort" ... Sort" doesn't show the filter I've set. ... Dim TableName As String ... So the select criteria is "pletter ... (microsoft.public.word.docmanagement) - Re: need help sorting text by trailing Numbers Value
... You can try the following VBA code and see if it works to give you a sort string you can use. ... Dim strReturn As String ... Then in the next step how could i move all of the trailing Numerical charachters to a new field? ... (microsoft.public.access.reports) - Re: Sort Type
... Like I said, the Space$ function itself it is about 50 per cent faster than the equivalent String$ function, but the main speed improvement will come from minimizing the number of times you call your Normalize function by taking it out of the sort routine itself. ... I can't really comment further on your normalize function since you have not provided a comprehensive sample of the stuff you intend to sort but, whatever function you end up using, my own previous suggestion of normalizing your strings into a temporary array just once and then performing your ShuttleMerge Index Sort on the temporary array will still produce a massive speed increase regardless of what you end up with in your Normalize function. ... (microsoft.public.vb.general.discussion) |
|