Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 16 Sep 2002 15:59:03 +0200 (MEST) From: dontspam AT gmx DOT net To: cygwin AT cygwin DOT com MIME-Version: 1.0 Subject: sed does not work as expected X-Priority: 3 (Normal) X-Authenticated-Sender: #0016256525 AT gmx DOT net X-Authenticated-IP: [212.112.209.29] Message-ID: <6836.1032184743@www33.gmx.net> X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I would like to transform a string with echo ./a/a/a/w | sed -n '1,$ s/[^\/]*/../gp' I get ..../..../..../..../.. but I expected to get ../../../../.. Can someone tell what's going wrong? Thanks Franz -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/