Search Results

Search: Posts Made By: RudiC
5,018
Posted By RudiC
Try adding a field separator after the publishing...
Try adding a field separator after the publishing year:
awk '{sub (/[0-9][0-9][0-9][0-9]\.@: /, "&|"); $1=$1} 1' RS= FS="\n" OFS=\| file | sort -t"|" -k3,3r -k4,4 | awk '$1=$1' FS="|" OFS="\n"...
5,018
Posted By RudiC
Like so? awk '$1=$1' RS= FS="\n" OFS=\| file |...
Like so?
awk '$1=$1' RS= FS="\n" OFS=\| file | sort -t"|" -k3,3 | awk '$1=$1' FS="|" OFS="\n" ORS="\n\n"
Showing results 1 to 2 of 2

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