Assuming you use Bash:
Code:
printf 'set pagesize 0\nselect file_system_path from dm_location_s;\n' | sqlplus -s user/pass@schema | while read item ; do [ "${item:0:1}" = "/" ] && [ -e "$item" ] && echo "$item" ; done
This outputs only those lines that begin with a slash and exist in the filesystem.
Note that
-e only tests for existence; it does not care what it is, or whether it is readable, writable, or executable.
-d would test the existence of a directory. See
man 1 test for detailed descriptions of the various possible tests.