From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Как удалить пробелы
Date: Mon, 01 Sep 2008 07:53:00 +0400
Message-ID: <48BB671C.9070109@rambler.ru> (raw)
In-Reply-To: <200809011027.55146.glebus@asd.iao.ru>
Gleb Kulikov пишет:
> In message [Воскресенье 31 августа 2008] from Kharitonov A. Dmitry was
> written:
>
>> Как удалить пробелы в начале строки?
>> Нужно для скрипта в bashe
>>
>> Допустим
>> t=" 123 123 "
>> а в результате получилось бы
>> "123 123 "
>>
>
> а может, без баша?
> типа, t.lstrip() ?
>
> просто не понимаю, так ли уж надо всё писать на баше, получая длинные,
> плохочитабельные скрипты. К тому же дольше выполняющиеся, из-за частого
> обращения ко всяким sed/awk.
>
>
Мне это нужно сделать для разбора конфигурационного файла в стартовом
скрипте. На чем вы предложите написать?
next prev parent reply other threads:[~2008-09-01 3:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-31 14:17 Kharitonov A. Dmitry
2008-08-31 14:25 ` Michael Holzman
2008-08-31 16:00 ` Yura Kalinichenko
2008-08-31 16:32 ` Kharitonov A. Dmitry
2008-09-01 13:19 ` Yury Aliaev
2008-08-31 16:33 ` Kharitonov A. Dmitry
2008-09-01 14:15 ` Slava Dubrovskiy
2008-08-31 18:21 ` Yuri Bushmelev
2008-09-01 20:10 ` Michael Shigorin
2008-09-01 3:27 ` Gleb Kulikov
2008-09-01 3:53 ` Kharitonov A. Dmitry [this message]
2008-09-01 4:01 ` Denis Nazarov
2008-09-01 17:48 ` Kharitonov A. Dmitry
2008-09-02 2:46 ` Gleb Kulikov
2008-09-01 4:40 ` Gleb Kulikov
2008-09-01 4:52 ` Denis Nazarov
2008-09-01 4:56 ` Andrey Rahmatullin
2008-09-01 11:27 ` Yuri Bushmelev
2008-09-01 11:40 ` Mikhail Gusarov
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=48BB671C.9070109@rambler.ru \
--to=kharpost@rambler.ru \
--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