Hi friends,
Hello again
i got stuck in problem. Is there any way to get a special directory from directory tree?
Here is my problm.." Suppose i have one fix directory structure "/abc/xyz/pqr/"(this will be fix).Under this directory structure i have some other directory and sub-directories. Now i want to search a directory (dynamically entered by user)and list out all the files under that particular directory".
I tried but i couldn't :wall: unless i manually type full directory path. ...
I hope, friends you got my question. please give me some idea....
find "/abc/xyz/pqr/$INPUTDIR" -type f
Thanks a lot..but after getting output of this find "/abc/xyz/pqr/$INPUTDIR" -type f ..i want to list all the files availble in that particular direcotry with time stamp.
Can you please also throw some light on that...
use ls with find , something like below .
find "/abc/xyz/pqr/$INPUTDIR" -type f -ls
1 Like
Thanks a lot it worked... ...but now same thing i am trying to list out all the symbolic links...but it's not working...can you please give any idea..because same command is working for actual files......
i tried with type -l but its not working. So i tried with
find . -type l -print | xargs ls -ld its working...thnks anyway for ur time