From: Eugene Ostapets <eostapets@gmail.com>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] помогите с bash
Date: Tue, 24 Jan 2006 11:19:32 +0200
Message-ID: <e12fd2db0601240119p3470ba3cj@mail.gmail.com> (raw)
In-Reply-To: <43D02905.70704@solin.spb.ru>
20.01.06, Aleksey Avdeev<solo solin.spb.ru> написал(а):
> Aleksey Avdeev пишет:
> > Igo пишет:
> >
> >>есть файлы в которых есть пробел, например "aaa bbb ccc.xxx"
> > Одно из лобовых решений: выделенное заменить на:
> > ls -1 |sed -e "s/^\(.*\)$/\'\1'/"
> Точнее на ls -1 "$in" |sed -e "s/^\(.*\)$/\'\1'/"
И что только люди не придумают, чтобы не читать документацию...
Достаточно переопределить переменную IFS, чтобы она не включала пробел
как разделитель токенов и все будет работать...
--
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru
next prev parent reply other threads:[~2006-01-24 9:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-18 6:42 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 [this message]
2006-01-25 9:59 ` Aleksey Avdeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e12fd2db0601240119p3470ba3cj@mail.gmail.com \
--to=eostapets@gmail.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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