![]() None of the examples so far copy files from direct itself, or from subsubdirectories of direct. For example, if direct has four subdirectories foo, bar, baz and qux and you only want to copy files from bar and baz, you can use cp direct/ba?/*.txt target If you only want to copy from certain directories, you can use a wildcard pattern that matches only these directories. txt files from all the subdirectories of direct, you can use a wildcard for the directory as well: cp direct/*/*.txt target You can pass multiple patterns to copy files from multiple directories: cp direct/direct1/*.txt direct/direct2/*.txt target txt files that are in the directory direct/direct1 to the directory target (which must already exist). txt files in a directory, use a wildcard pattern: cp direct/direct1/*.txt target
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |