I have file with line format as follows:
<something> <file_name> type:file <something> size:<filesize> <something>
I would like to sort numerically it by the field "filesize" identified by label "size:". The simple key number/offset passed usually to sort program doesn't work because there is no strict separator - multiple spaces can occur before "size:" label - for example in "file_name". Is there any way to sort from command line using preceding label as a field identifier?