Skip to content

crimsondynamo329/HW4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

change_grade.py

Takes two command line arguments: a string and a number, and reads lines formatted like 'jshmoe,Shmoe,Joe,87' from standard input.  If the string supplied on the command line is found anywhere on a line of input, then the grade on that line is changed to that number and the modified line is printed to standard out.  Lines that do not match the string are printed back to standard out unchanged.

Example usage:
./change_grade.py Nye 80 <files/grades.csv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages