How can I find a file whose name includes a given string, such as “abcde”?
Within a set of directories, how do I find a file whose name includes a given string, such as “abcde”?
Within a set of directories, how do I find a file whose name includes a given string, such as “abcde”?
Is there a command to delete all the files in a directory that haven’t been modified in N days? I need to clean up some old logs.
I have a directory, dir1 which contains many files whose names end in either .jpg or .png. I want to copy all the .png files to dir2 which is empty.
I want to rename multiple files (file1 … fileN to file1_renamed … fileN_renamed) using find command:
I’m using find with the -exec option in console, on FreeBSD (for example, find . -exec sha1 {} ;).
I have been trying to create a find command string that will find all files that end with a number 1-99 but exclude all others.
I would like to list the files recursively and uniquely that contain the given word.
I want to solve the problem ‘list the top 10 most recent files in the current directory over 20MB’.
I have a simple script that I understand most of, it’s the find command that’s unclear. I’ve got a lot of documentation but it’s not serving to make it much clearer. My thought is that it is working like a for-loop, the currently found file is swapped in for {} and copied to $HOME/$dir_name, but how does the search with -path and -prune -o work? It’s annoying to have such specific and relevant documentation and still not know what’s going on.