Dear Fellow fedora users,
I need a little bit of guidance/help.
I have a csv file that generates 13 items(fields) as follows
User ID,Last Name,First Name,Course Name,Grade,Start Date,Target Date,First
Grade,Last Grade,Days Since Last Action,Target Completion,Progress,External
User ID
86195101,lastname,firstname,TX-Spanish II
B-CR,95.9%,1/28/2026,5/27/2026,2/3/2026,3/4
/2026,75,92.8,100,101305
..........
..........
And I want to print on command line orbpipe to a file the following fields
2 3 4 5 12
I have tried the following but the sort command does not work correctly:(
awk -F',' '{ printf "%-20s %-20s %-30s %-4s %-5s %-5s\n", $2, $3, $4, $5, $9,
$12 }' Dashboard.csv
sort -t, nk6 | awk -F',' '{ printf "%-20s %-20s %-30s %-4s %-5s %-5s\n", $2,
$3, $4, $5, $9, $11 }' Dashboard.csv
I want to print a line on top with
LastName, FiratName. Class, Grade(%),LastGrade,Progress
Then output that with only the grades which the progress is 100 and then sort
thos list with Last Grade sorted by the most recent grades listed.
Many thanks for advising & guidance in this matter.
Best Regards,
Antonio
Sent from ProtonMail, encrypted email based in Switzerland.
Sent with Proton Mail secure email.
--
_______________________________________________
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