bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stripping leading /


From: Paul Jarc
Subject: Re: stripping leading /
Date: 24 May 2001 12:14:27 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

address@hidden (Charles Wilkins) writes:
> I am looking for the most generic way to strip the leading frontslash
> character from a string from within a shell script.

echo "$string" | sed '1s,^/,,'


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]