Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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 on May 17 2016
Added on Apr 8 2016
3 comments
1,284 views