Hi all,
I want to check the list of all directories and links in a particular directory and here, i have the list of the directories/links which i need to print on screen.
I used the below command to check the dir/links,
cd path1 ; ls -ltd `cat dir_links_list`
But here, i don't want to cd to that path1 where i have to check the list of dir/links. Because, there are some files have to be processed in the current path. So Without cd to the path1 directory, is there any way to get the list the all dir/links?
i guess, we can get this using find also. But there are two issues in find command.
- we can not pass the list of files to the find command which we need to print on screen.
- And find command will check recursively in the given path, but i don't want to check it in recursively, i want to check the given list dir/links in top level directory only i.e., path1 directory.
Can anyone provide the way to achieve this using find or ls commands?
Regards,
VRN