Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Some help,pls?
Create a shellscript which will receive as parameters a dir name and a file name.The shell will recursively look for the file in the dir and it will determine if the file given as a parameter is found in the dir.(even if the file exists in a subdir)or not,and if it finds the file the shell will say the dimension of the file. :sigh:
Posted
Comments
Sergey Alexandrovich Kryukov 8-Mar-11 4:57am    
Such task is some pain and suffering, not real knowledge, I would say. Do you want someone else to do it for you?
--SA

1 solution

Take argument in the shell script as $1
use find -r command.

This might help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900