how do I chop of characters at the end of a line...

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Carl Parrish
Date:  
Subject: how do I chop of characters at the end of a line...
What language are you using? The short answer is just about every
language today supports Regular Expressions. If you say you're doing it
is bash or in perl or ruby or vim or java or python I can give you some
example regex to use.

Carl P.

On Mon, 2003-03-03 at 21:38, Entelin wrote:
> I want to take a variable say a="string.txt" and chop off the last 4
> characters so I can make variable b equal to just "string"
>
> Thanks for your help
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

--
Carl Parrish ()
http://www.carlparrish.com
---
Registered Linux User #295761 http://counter.li.org