Re: [SLUG] sed to delete [??] ?

2012-07-20 Thread Jeremy Visser
On 21/07/12 15:40, Amos Shapira wrote:
> (Writing from phone so can't test)
> It should be something like:
> sed -r -e 's/\[[0-9]{1,2}\]//g'

Now that's just showing off.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] sed to delete [??] ?

2012-07-20 Thread lists
On Sat, July 21, 2012 3:40 pm, Amos Shapira wrote:
> (Writing from phone sp can't test)
> It should be something like:
> sed -r -e 's/\[[0-9]{1,2}\]//g' On Jul 21, 2012 3:19 PM, 

I got this:
Job  1960053  OTHER  Abc 04-12-2012  Notes

seems pretty close to what I wanted !
thanks !!

so, if I changed from 0 to 1 as so :
sed -r -e 's/\[[1-9]{1,2}\]//g'

then, [0] would keep, that's even better, as the very last '[]' indicates
any additional info

Job  1960053  OTHER  Abc 04-12-2012  Notes [0]

thanks!!

>> desired:
>> Job  1960053  OTHER  Abc 04-12-2012  Notes


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] sed to delete [??] ?

2012-07-20 Thread Amos Shapira
(Writing from phone sp can't test)
It should be something like:
sed -r -e 's/\[[0-9]{1,2}\]//g'
 On Jul 21, 2012 3:19 PM,  wrote:

> I wget a page that ends up with multiple lines as below:
>
> Is there a sed expression, or other, to delete all '[??]' and '[?]'
> i.e, brackets with either single or two numeric characters
>
> ...
> [34]Job  [35]1960053  [36]OTHER  [37]Abc 04-12-2012  [38]Notes [39][0]
> ...
> desired:
> Job  1960053  OTHER  Abc 04-12-2012  Notes
>
> tia,
> voytek
>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



[SLUG] sed to delete [??] ?

2012-07-20 Thread lists
I wget a page that ends up with multiple lines as below:

Is there a sed expression, or other, to delete all '[??]' and '[?]'
i.e, brackets with either single or two numeric characters

...
[34]Job  [35]1960053  [36]OTHER  [37]Abc 04-12-2012  [38]Notes [39][0]
...
desired:
Job  1960053  OTHER  Abc 04-12-2012  Notes

tia,
voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html