On Mon, May 18, 2026 at 8:22 PM olivares33561 via users
<[email protected]> wrote:
> [cut fields from a CSV file]

As long as you don't have to worry about quoted fields, you can do:
cut -d, -f2,3,4,5,12 filename

> [sort based on a given field]
> sort -t, nk6 | awk -F',' '{ printf "%-20s %-20s %-30s %-4s %-5s %-5s\n", $2, 
> $3, $4, $5, $9, $11 }' Dashboard.csv

I think you want something more like "sort -t, -k6,6n".  However, if I
read your post correctly (and it is entirey possible I did not), your
sort field is a date?  If so I don't think you can sort it directly.
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to