(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, <li...@sbt.net.au> 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