


It's OK here as the filename is passed as argument to an option and is always featured.mp4 anyway, but for other usages you may have to take into account that the file name may start with - or + (and be understood as an option by the command) or contain = (and be understood as a variable assignment by awk for instance), or other characters causing this kind of problem with perl -p/n (not all of them fixed by GNU find's. Thus, when the find command encounters a directory inside the given path, it looks for other files and directories inside it. Get a list of directory names with find Ask Question Asked 10 years, 10 months ago Modified 1 year, 11 months ago Viewed 174k times 68 I know I can do this to get a list of directory names: find. filename here, BSD ones expand to filename. name-of file or dir-to-search : Name of the file or directory to look for action-to-take : such as copy, delete, move, etc. page -type f -print0 : The find action will start in the current directory, searching by name for files that match the. With other finds, provided directory names don't contain newline characters: find.
