ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] помогите с bash
@ 2006-01-18  6:42 Igo
  2006-01-18  7:10 ` "Владимир Николаевич Формин"
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Igo @ 2006-01-18  6:42 UTC (permalink / raw)
  To: community

есть файлы в которых есть пробел, например "aaa bbb ccc.xxx"
вот кусок кода
in=$1
if [ -n "$in"  ]; then
   for i in `/bin/ls -1 "$in"`
   do
     echo$i
   done
fi
так вот когда код натыкается на файл с пробелами то echo $i выдает по 
отдельности ааа bbb ccc.xxx как сделать что бы он выдавал этот файл 
одной строкой
спасибо


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

end of thread, other threads:[~2006-01-25  9:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-18  6:42 [Comm] помогите с bash Igo
2006-01-18  7:10 ` "Владимир Николаевич Формин"
2006-01-18  7:19   ` Алексей Синицын
2006-01-18  8:24   ` Michael Isachenkov
2006-01-18  7:29 ` Eugene Ostapets
2006-01-18  7:34 ` Alexey V. Novikov
2006-01-18  7:38 ` Peter Volkov
2006-01-18 10:58 ` Sergey Shilov
2006-01-18 18:48 ` Yura Kalinichenko
2006-01-19 23:50 ` Aleksey Avdeev
2006-01-20  0:04   ` Aleksey Avdeev
2006-01-24  9:19     ` Eugene Ostapets
2006-01-25  9:59       ` Aleksey Avdeev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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