The ${DATAENV}/raw is the linked area. so find can't tell that the levels preceeding are links.
I tried with the -H and -L and -follow -xdev etc all seem to do nothing and indicate that find thinks its on the /tmp/storage/.... area from the start.
The only way I can see around this is to do some sort of pre-check:
and then use ${NEWPATH} in the find.
Just seems like there should be a command like ls / other to disclose a files true location.
Hi,
I have a flat file which is used by a program. I dont know the program name .This file is in used by that program which is still running ?
Is there any way to find out which program is accessing this file just by knowing the file name?
Can we check some thing in "ps" just by knowing only... (8 Replies)
Hi All,
My target is to find the biggest files opened by any process and from that i have to find process id and the corresponding file also to avoid file system being hung-up.
Finding the process id: is to kill the process
Finding the biggest file: is to remove the file
To get the process... (0 Replies)
Hi,
I am trying to find all files in a directory that have .dat and .int extensions and removing them.
rm -f `find ${MY_DIR} -type f -name '*.dat' -o -name '*.int'`
This works fine if $MY_DIR is a regular directory.
However when $MY_DIR is a symbolic link then this command fails.
How... (1 Reply)
Hi,
I have a directory made up of many symbolic links to folders multiple file systems.
I want to return folders modified within the last 50 days, but find is using the link time rather than the target time.
find . -type d -mtime -50
Is there a way to either:
a) Make a symbolic link... (1 Reply)
I am interested in searching links to files not found within a directory, so I use the -follow option. However, the dir may contain links to files that are also found within the dir. That means if I bin/find a bunch of files then search their contents using grep, I get redundant information. An... (1 Reply)
Hi,
i tried to search a string, recursively, in subdirectories with:
find . -type f -print | xargs grep -s hello
i found all files that contain the string "hello"
but i would perform a search also in symbolic link, so i tried with
find -L . -print | xargs grep -s hello
but no result was... (3 Replies)