subject

Write a case condition that:

store the file name by default in $file or you may read it as input argument while running the script.

case 1- checks if file is a directory

case 3- file is a regular file

case 2- if a file is readable

case 3- if file is writeable

problem 5: write a shell script that reads a filename; and verifies the file extension to be text/

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Cómo pongo un tomo de llamada sin pagar?
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
For which utilities, if any, does the landlord pay?
Answers: 2
question
Computers and Technology, 24.06.2019 10:50
In 2009 to 2010, how many social network users were reported as being victims of online abuse? a. 1 in 10 b. 100% c.1 in 100 d. 50%
Answers: 2
You know the right answer?
Write a case condition that:

store the file name by default in $file or you may read it...
Questions
question
Mathematics, 17.05.2021 20:50
question
Mathematics, 17.05.2021 20:50
question
Mathematics, 17.05.2021 20:50
question
Mathematics, 17.05.2021 20:50
Questions on the website: 13722363