Skip to Main Content

JAVA - how to find a directory based on owner/user_name/functional_id and search keyword and need to

3216699Apr 8 2016 — edited Apr 19 2016

Hi,

I am very very new to Java and currently i am learning, could anyone guide me how to find a directory/folder based on owner id/username/user id/functional id and a search keyword string and need the first occurring directory name.

like in unix/linux command

find . -name "keyword" -type d -maxdepth 1 -user $(whoami) -print | xargs ls -ltrdah | awk -F '/' '{print $NF}'


I searched several discussions and i am unable to get almost match-able code snippet.

Thanks,

Regards

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on May 17 2016
Added on Apr 8 2016
3 comments
1,204 views