Skip to content

Commit

Permalink
add another powershell command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Shi committed Dec 24, 2021
1 parent 270bb18 commit 603d406
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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') }
```

0 comments on commit 603d406

Please sign in to comment.