Re: expr help
From: andre willkowsky (andre_at_gmx.de)
Date: 08/31/04
- Previous message: joe_at_invalid.address: "Re: (patch for Bash) x-y character plot"
- In reply to: Stephane CHAZELAS: "Re: expr help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 31 Aug 2004 19:05:01 +0200
Hi,
Stephane CHAZELAS wrote:
> 2004-08-31, 16:03(+00), foo@bar.com:
>> Hey kids,
>>
>> Is there an easy way to do the following:
>>
>> foo="a:b:c:d:e:f"
>>
>> bar="d"
>>
>> expr <insert code here to remove ${bar} from ${foo}>
if you like to try it with bash you can use
foo="a:b:a:d:e:a";
bar="d";
echo ${source//${a}:/}
Greetings
Andre
- Previous message: joe_at_invalid.address: "Re: (patch for Bash) x-y character plot"
- In reply to: Stephane CHAZELAS: "Re: expr help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|