This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # read line by line from file | |
| while read p; do | |
| echo $p | |
| done <file | |
| # change first letter from upper to lower | |
| q="$(tr '[:upper:]' '[:lower:]' <<< ${p:0:1})${p:1}" | |
| # sed variable substitution | |
| sed "s/$var/r_str/g" file_name >new_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Claim = function () { | |
| // *********************************************************** | |
| // REQUIRED CONSTANTS, DO NOT MODIFY | |
| // *********************************************************** | |
| var ASSIGNMENT_MARKING = 'Assignment Marking'; | |
| var COURSE_MATERIAL_PREPARATION = 'Course Material Preparation'; | |
| var TUTORIAL = 'Tutorial'; | |
| var CONSULTATION = 'Consultation with students'; | |
| var MIDTERM_MARKING = 'Midterm Marking'; | |
| var PROJECT = 'Project Evaluation'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ocamlc -I +ocamldoc -c tg.ml && ocamldoc -g tg.cmo test.ml |
OlderNewer