title: How to navigate to a single child directory without knowing its name using shell command?
body: <p>I need to run a script in a remote machine from my JAVA code using runCommand() method. Now I can't always know the full path of the script as a particular directory name keeps changing. For example the path looks like this : <strong><em>/a/b/xxxxx/script</em></strong> . <strong>xxxx</strong> is the directory name that keeps changing and its the only single directory under /a/b/. Is there any shell command using which I can get the directory name ? I know using JAVA,but I specifically need shell command.</p>