Культурный офтопик
 help / color / mirror / Atom feed
* [room] bash
@ 2018-03-09 17:12 Vladimir Karpinsky
  2018-03-09 17:59 ` Vladimir Karpinsky
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Karpinsky @ 2018-03-09 17:12 UTC (permalink / raw)
  To: smoke-room

Здравствуйте!

Объясните, пожалуйста, логику:

# pwd
/home/user
# find  ./ -name *~ | xargs -r ls -l
-rwxrwxr-x 1 user user   467 мар  9 16:39 ./tmp/file~
-rwxrwxr-x 1 user user 16718 мар  9 16:40 ./tmp/.file.un~
# cd tmp
# find  ./ -name *~ | xargs -r ls -l
-rwxrwxr-x 1 user user   467 мар  9 16:39 ./file~

Почему при запуске из домашнего каталога (или из более высокого) файл 
.file.un~ "виден", а из tmp -- нет?

Я, конечно, понимаю, что можно:
# find  ./ -name .*~ | xargs -r ls -l
-rwxrwxr-x 1 user user 16718 мар  9 16:40 ./.file.un~

но хотелось бы одним запросом и из любого места...

-- 
	С уважением,
		Владимир.

---
Это сообщение проверено на вирусы антивирусом Avast.
https://www.avast.com/antivirus



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [room] bash
  2018-03-09 17:12 [room] bash Vladimir Karpinsky
@ 2018-03-09 17:59 ` Vladimir Karpinsky
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Karpinsky @ 2018-03-09 17:59 UTC (permalink / raw)
  To: smoke-room

09.03.2018 20:12, Vladimir Karpinsky пишет:
> # find  ./ -name *~ | xargs -r ls -l

Свою ошибку понял: надо *~ в кавычки заключать, видимо * как-то по-разному 
разворачивается...

-- 
	С уважением,
		Владимир.

---
Это сообщение проверено на вирусы антивирусом Avast.
https://www.avast.com/antivirus



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-09 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09 17:12 [room] bash Vladimir Karpinsky
2018-03-09 17:59 ` Vladimir Karpinsky

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.smoke-room


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git