create script that finds files- directory and something else
Create a script named dirstat.What i should do is to find if is a file,directory or something else.For example to appear this messages : file1 is file .Desktop is directory. Public is something else.dirstat is file.
Hint :This exercise i was tryed alone to do it . If your answers is go there to study this ok ,better it would be not to come here for help ,isnt the right place.This is what i tryed i have study a lot i didnt find another exercise similar to it for that i came to this placeso if you would like to help me with the exercise. Code:
$vi dirstat |
Look at this for file test operators
http://tldp.org/LDP/abs/html/fto.html |
Code:
man test |
why no test on $i?
|
really?
after this? the answers are in that thread. let me recap: Quote:
Quote:
|
You have explained you are doing a Java course and you clearly are not wanting to try and learn bash scripting, so I am wondering why you are bothering with these questions?
|
All times are GMT -5. The time now is 06:03 PM. |