Search Results

Search: Posts Made By: RudiC
1,730
Posted By RudiC
For the future - PLEASE - provide...
For the future - PLEASE
- provide representative samples - AND STICK TO THEM!
- provide a detailed and specific description of your problem - DON'T reference ID not explaining what that is, explain...
1,730
Posted By RudiC
Try sed 's/[~>]/&#/g' file | sort -t"#" -k5,5 |...
Try
sed 's/[~>]/&#/g' file | sort -t"#" -k5,5 | sed 's/#//g'
179341~1704509~1704480~456690129_TOTAL->BTT TOO
179341~1704481~1704480~475919266_TOTAL->MANUAL->COM...
1,730
Posted By RudiC
"the last record" - even if I translate "record"...
"the last record" - even if I translate "record" to "field", "MANUAL" would NOT be the last.

"group record based on the entire row" - what does this mean? Is that bespoke subfield the key, or the...
1,730
Posted By RudiC
Applying copious amounts of phantasy, (or wildly...
Applying copious amounts of phantasy, (or wildly guessing, whatever you prefer) let me try to paraphrase your request, which, btw, dramatically changed during the course of the thread:

A file of...
1,730
Posted By RudiC
With a ">" separator, there's no 4th field to...
With a ">" separator, there's no 4th field to serve as a sort key in above data. I'm sorry, I don't get what you're after.
1,730
Posted By RudiC
Please be aware that a sort key by default stops...
Please be aware that a sort key by default stops at line end; to confine it to a single field, the stop position needs to be specified as well, e.g. -k4,4. Also note that it's a lower case k .
1,730
Posted By RudiC
What do you mean by I can sort by each column and...
What do you mean by I can sort by each column and pipe it to next K2 ?
1,730
Posted By RudiC
Try sort -t">" -k2 file 456690129_TOTAL->BTT...
Try
sort -t">" -k2 file
456690129_TOTAL->BTT TOO
-172680236_TOTAL->BTT TOO->MTO
-1903630442_TOTAL->COLE
475919266_TOTAL->MANUAL->COM
-541283452_TOTAL->MANUAL->CRT
-572275295_TOTAL->MANUAL->MTO...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy