Skip to content

Commit

Permalink
lab1
Browse files Browse the repository at this point in the history
  • Loading branch information
tianye-chen committed Feb 24, 2022
1 parent de385e3 commit 3d7e69b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
File renamed without changes.
7 changes: 7 additions & 0 deletions Lab1/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
lab1_awk:
@awk -f 'lab1.awk' ../d66a59b6db4e59c16efd4c42ad411f8e/data.csv | awk 'NR<=1{print $0; next}{print $0 | "sort -t ',' -n -k8 -r"}' | awk '{if(NR==1) printf("Rank, "); else printf("%s ," ,NR-1);print;}' > resultdata.csv
@echo Top 3 cars:
@awk 'NR<5{print $0}' resultdata.csv



File renamed without changes.
7 changes: 0 additions & 7 deletions makefile

This file was deleted.

Empty file removed resultdata
Empty file.

0 comments on commit 3d7e69b

Please sign in to comment.