Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Andriy Gapon                         2:5020/400     07 Aug 2007  18:28:38
 To : Alexey Vlasov
 Subject : Re: find как в линуксе
 -------------------------------------------------------------------------------- 
 
 on 07/08/2007 16:15 Alexey Vlasov said the following:
 
 > Привет друзья.
 > 
 > Линукс:
 > # find ./111 -depth
 > ./111/qe
 > ./111/234
 > ./111/kjh
 > ./111/oiq
 > ./111/sdf
 > ./111/xcv
 > ./111
 > 
 > # find ./111 -depth -delete
 > Снес все, вместе с каталогом 111.
 > 
 > FreeBSD:
 > # find ./111 -depth
 > ./111/qe
 > ./111/234
 > ./111/kjh
 > ./111/oiq
 > ./111/sdf
 > ./111/xcv
 > ./111
 > 
 > # find ./111 -depth -delete
 > find: -delete: ./111: relative path potentially not safe
 > 
 > Знаю, можно -exec или xargs, но хотелось бы все одной командой.
 
 rm -rf ?
 
 -- 
 Andriy Gapon
 --- ifmail v.2.15dev5.4
  * Origin: TopNET NEWS Server (news.top.net.ua) (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: find как в линуксе   Andriy Gapon   07 Aug 2007 18:28:38 
Архивное /ru.unix.bsd/52286c5910172.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional