From 603d406b20bd4931ed418630c0aca44fdbce93a8 Mon Sep 17 00:00:00 2001 From: Jerry Shi Date: Thu, 23 Dec 2021 22:21:34 -0500 Subject: [PATCH] add another powershell command --- readme.MD | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/readme.MD b/readme.MD index 31f6cc6..bf3a041 100644 --- a/readme.MD +++ b/readme.MD @@ -32,8 +32,12 @@ python cleanup-roster.py downloaded.xls -f 1 2 python cleanup-roster.py downloaded.xls -f all ``` -In Powershell, the following command appends all students record to file all.csv. +In Powershell, the following commands process multiple xls files. ``` -dir *.xls | foreach { py .\cleanup-roster.py $_ -a -o all.csv } +# appends all student rows to all.csv +dir *.xls | foreach { py cleanup-roster.py $_ -a -o all.csv } + +# save student records in separate csv files +dir *.xls | foreach { py cleanup-roster.py $_ -o ($_.name -replace '.xls','.csv') } ```