Open our Scribd files don't SH
encases that user specify some extension which doesn't exist in Targett location.
We should print to him no file of it the debt extension found.
So go to the bottom of our script and we need to ask if extension was specified by user.
So if a value of variable E X T is.
So if it is different from emptiness presens as to double quotation marks.
So that means if a value of variable x The was not set then we need to know Clodius exit status of the
group command.
We did in previous lecture.
So right.
LS Desch L and use variable location
and output of a dead Vitthal pass to awk program where do we sell it only regular files
and then dead output will pass grep command where we ask if there is extension represented by a value
of variable x the
and of course we don't want any output on the skein.
We want to know only exit status.
So we need to read direct standard output and standard error to def no.
So due to their detection to definite
Now if exit status is not the zero
we can try to use the debt no file with extension represented by variable x the most found
and we can exit Scribd here.
It exists to store because a specified extension was not found.
And we don't have anything to count
so exit with exits that those two
so descript now looks good and we can test what we have just written so save it a script
and Harami with some location and existing extension
no error reported.
Good.
Now I ran with some not existing extension and NDC see no file extension conv found great.
This is working perfectly.