LINUX.ORG.RU

Ответ на: комментарий от aol

зачем нужна \;
?

правильно ли я понимаю, что
; - это какой-то служебный символ bash (операторы может быть он разделяет)
а \ - это такой символ, чтобы заэскепить ;

Т.е. за параметром exec зачем-то передаются команды и потом точка-с-запятой.

так зачем передавать точку-с-запятой?

ruoxid_agilobetov
() автор топика
Ответ на: комментарий от ruoxid_agilobetov

открой man find - там все ответы есть )

aol ★★★★★
()
Ответ на: комментарий от ruoxid_agilobetov
-exec command ;
	      Execute  command;	 true  if 0 status is returned.	 All following
	      arguments to find are taken to be arguments to the command until
	      an  argument  consisting of ';' is encountered.  The string '{}'
	      is replaced by the current file name being processed  everywhere
	      it occurs in the arguments to the command, not just in arguments
	      where it is alone, as in some versions of find.  Both  of	 these
	      constructions might need to be escaped (with a '\') or quoted to
	      protect them from expansion by the shell.	 See the EXAMPLES sec-
	      tion  for examples of the use of the '-exec' option.  The speci-
	      fied command is run once for each matched file.  The command  is
	      executed	in  the	 starting  directory.	 There are unavoidable
	      security problems surrounding  use  of  the  -exec  option;  you
	      should use the -execdir option instead.
nagibator
()
Ответ на: комментарий от ruoxid_agilobetov

Фиг с ними с «папками», как их выполнить ? :)

robot12 ★★★★★
()
Ответ на: комментарий от ruoxid_agilobetov

поставь себе моск, вендобыдло бисграматное

anonymous
()

в закладки

чайникам самое оно, не потеряйте: ru.clihelper.com/find/index.html

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.