From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB, SPF_PASS autolearn=no version=3.2.4 Message-ID: <48BAC7F4.7020900@rambler.ru> Date: Sun, 31 Aug 2008 20:33:56 +0400 From: "Kharitonov A. Dmitry" User-Agent: Thunderbird 2.0.0.14 (X11/20080719) MIME-Version: 1.0 To: ALT Linux Community general discussions References: <48BAA80D.9030602@rambler.ru> In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Comm] =?koi8-r?b?68HLINXEwczJ1Ngg0NLPwsXM2Q==?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 16:34:09 -0000 Archived-At: List-Archive: List-Post: Michael Holzman пишет: > 2008/8/31 Kharitonov A. Dmitry : > >> Как удалить пробелы в начале строки? >> Нужно для скрипта в bashe >> >> Допустим >> t=" 123 123 " >> а в результате получилось бы >> "123 123 " >> > sed 's/^[ \t]*//' > > Здесь (http://www-h.eng.cam.ac.uk/help/tpl/unix/sed.html) и другие примеры есть > > > Спасибо! классная статейка, читал с удовольствием