I have a file script.sh:
script.sh
cd /folder
mv a.csv result.csv
The a.csv file will have lots of records(GBs) in form:
id,name
1,"platinum"
2,"joe"
1,"platinum"
...
What I want to do is create a file using a script called records.txt, which will have a total no of records and records with unique IDs.
records.txt
Total Records: 3
Unique Records: 2
Total excluding id and name.
I want to do this via script after mv. How can I do it via the script?