

Write a shell script to reverse the contents of a file Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory. You can check the number of lines with wc command.

Two modes of writing are supported: overwrite, where the text is written to the beginning of the file and any existing content is lost, and append, where the text is written to the end of the file, preserving the existing content. ¢O_WRONLY:only write to that file while opened. The convention in xv6 is that file-related system calls are in sysfile.
