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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started