help in deletion part of a line
shantanoo at gmail.com
Mon Oct 22 20:13:18 PDT 2007
On 23-Oct-07, at 4:11 AM, Gary Kline wrote:
> Is there an easier way by sed or ed to remove strings
> (caight by grep) of the sort:
> where "5" and "2" can be any integer below 10?
> (I know how to delete the *entire* line using ed, but not just
> the first part?
$ echo 'part5.chapter2.text-' | tr -d '[0-9]'
$ echo 'part5.chapter2.text-' | sed 's/[0-9]//g'
More information about the freebsd-questions