Question
Write a program that takes a file name as its single command line
argument, checks if the file has not been modified for 4 weeks, and
if not sets it to read-only by removing all write permissions that
are set (without making any changes to other permissions).
Note: You can use the UNIX touch utility to change the
modification date of a file, so you can test your program.
Answer