Write a shell script, enter the three sides of the triangle, and according to the input values of the three side output whether the three lengths of a triangle,
5, write a shell script to implement the following functions:
Determine if the first argument as the name of the file exists, if the file does not exist in the screen output the file does not exist, if the file exists, the screen shows the type of the file
CodePudding user response:
Brother, soft measurement?CodePudding user response:
A yuan quadratic equation root problem junior high school knowledge has been forgotten, the relation between ABCAnyway, should give baidu literally can find
The second triangle side problem pupils well,
If (Max (a, b, c) & gt;=a + b + c - Max (a, b, c))
Echo "is not a triangle"
The else
Triangle "echo"
Use the find/command to check the last question, you can then unavailability limit first, and d is a directory, judging - is a normal file,