Question: FOR UNIX Preparation: Create a file and type some junk in it. Make at least five soft links to this file using completely arbitrary names.
FOR UNIX
Preparation:
Create a file and type some junk in it.
Make at least five soft links to this file using completely arbitrary names.
Script
Script Name: softLinkFinder.txt
Arguments: A filename. The files for which we want to find soft links.
Validation: The minimum validation requirements are:
Ensure that exactly one argument is entered.
Check that the only argument is the name of a file that exists.
Body Section: Use the ls l and grep command to find all the soft links attached to $argv[1] positional parameter. Note that a file of type softlink is distinguished by lowercase l. Be sure to find the soft links to the file defined in $argv[1] and not other files.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
