This program processes a text file that has singleline and multiline comments, subsitutes user input for time and date tags, and uppercases single and multiline h tags.
Perl
Program tested on Ubuntu 16.04 running perl v5.22.1.
perl ass1.pl
or change execute permissions for ass1.pl and from the terminal:
./ass1.pl
The program keeps the original file and generates an .output file and a .backup file (appends that to the filename, for example: testcase1.txt --> testcase1.txt.output and testcase1.txt.output).
User is prompted for time, date, and the file to process (testcase1.txt). Testcase1.txt contains strings that are processed with perl regular expressions. Examples of processed files can be found in the /output folder.