Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/examples/cp_wildcards.html
Дата изменения: Fri Jan 17 12:43:16 1997
Дата индексирования: Tue Oct 2 02:35:08 2012
Кодировка:

Поисковые слова: magnetic north
Examples of using cp with special characters

Examples of using cp with special characters

To copy files that match on several characters:

   cp *.txt chapt1

This copies all the files in the current working directory with the extension ".txt" to the sub-directory chapt1.


To copy files that match on a single character:

   cp sect?b partA

This copies any file with the name sect[1-9]b to the sub-directory partA.


To copy all the files within a specified range:

   cp sect[1-4]c partB

This copies files sect1c, 2c, 3c and sect4c to the sub-directory partB.


[Home] [Search] [Index]