Имя пользователя:
Пароль:
 

Название темы: Найти и удалить
Показать сообщение отдельно
mar mar вне форума

Аватара для mar

just mar


Moderator


Сообщения: 3906
Благодарности: 165

Профиль | Отправить PM | Цитировать


man find
/delete
Код: Выделить весь код
 -delete
             Delete found files and/or directories.  Always returns true.
             This executes from the current working directory as find recurses
             down the tree.  It will not attempt to delete a filename with a
             ``/'' character in its pathname relative to ``.'' for security
             reasons.  Depth-first traversal processing is implied by this
             option.
э-э-э вообще-то я всегда боюсь так чохом, но если уж очень хочется, то что-то такое:
Код: Выделить весь код
find my_path/ -name "qwerty*" -delete
или, только файлы:
Код: Выделить весь код
find my_path/ -name "qwerty*" -type f -delete

Отправлено: 22:15, 10-09-2005 | #3

Название темы: Найти и удалить