I am trying to use the find command with delete in a directory . Even though i use a wil character search the find command is checking the hidden files which inturn results in error .
Can i avoid look that into the hidden files ?? I am using HP unix .
find /cv1/ -name "ite*" -mtime +14 -exec rm -f -r
HIw can modify the above command so that i exclude the hedden files or directory when searching ..
PLease let me know if is urgent
Thanks,
Arun
Check the syntax of the find command. It is missing the curly braces {} that represent the files returned by find and it should be terminated by an escaped semi-colon \;
I am not sure what you mean by hidden files or directories?
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \;
But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Hi,
I have a filename Location.txt in a directory /abc.
Similar name file is present in its subdirectory /abc/xyz.
I want to find the file which is present only in /abc and not in /abc/xyz.
Please any1 of u can provide a quick suggestion.
Its very urgent.
Thanks,
Amol (2 Replies)
Hi All,
I was exploring find command and came across -prune option which would exclude search in a mention subdirectory.
My quesry is to search all files more that 100 MB size but exclude search in a subdirectory.
I am using below command,but somehow it is not working.
Can anybody help me... (6 Replies)
I have been searching, and cannot find an answer for this. I am trying to find all files for a user, lets call him (test001), and I want to exclude a specific directory.
Here is the command I run, it finds all files:
find / -user test001
I get this result:
> find / -user test001 ... (4 Replies)
Hi Forum,
I am using the below command to find files older than x days in a directory excluding subdirectories. From the previous forums I got to know that prune command helps us not to descend in subdirectories. Though I am using it here, not getting the desired result.
cd $dir... (8 Replies)
Find all files in the current directory only excluding hidden directories and files.
For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided.
`find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Hi All,
requirement is to find and remove the files from sub directories but it should exclude the files from parent directory.
At present i am using the below one but it finds and remove files from both parent and sub directories.
find ${PATH} -type f \( -name securitas\* -o -name \*gz... (1 Reply)
hello.
I try to print a list of files but excluding some directories and some files.
I would like to write a command for :
find "from_dir" "ignore dir1, dir2, ..." "ignore file1, file2,...." "where file are older than 2017-02-03T06:00:00"
Note that "DO_IT" is a local function in the script... (5 Replies)
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT PHP
raddepend
RADDEPEND(1) General Commands Manual RADDEPEND(1)NAME
raddepend - find RADIANCE scene dependencies
SYNOPSIS
raddepend file ..
DESCRIPTION
Raddepend uses getbbox(1) to expand scene file arguments and find file dependencies for make(1) or rad(1). Raddepend looks only in the
current directory, so dependencies hidden elsewhere in the filesystem will not be found or named.
The output is the name of files, one per line, that were accessed during the expansion of the input file arguments. The file arguments are
excluded from the list. If no input files are given, the standard input is read.
AUTHOR
Greg Ward
BUGS
On some older NFS systems, the file access dates are not updated promptly. As a result, raddepend may not be 100% reliable on these sys-
tems. If the output seems to be missing essential files, this is no doubt why. The only fix is to put in a longer sleep time between the
getbbox call and the final ls(1).
SEE ALSO make(1), oconv(1), rad(1), xform(1)RADIANCE 4/15/94 RADDEPEND(1)