perl -lne 'print$1if/(-?\d(?:\.\d+)?)/' < data > munged
Update: I posted this before Fletch updated his node.
In reply to Re^2: removing square brackets
by ikegami
in thread removing square brackets
by Angharad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |