I have a file of this type:
16:00 [61]Al-Najma - Al-Rifaa [62]5.06 [63]3.55 [64]1.57 4
and i want remove all the strings inside square parentheses in order to obtain
16:00 Al-Najma - Al-Rifaa 5.06 3.55 1.57 4
I am trying with sed in this manner:
sed 's/\[.*]//g' file1 > file2
but i obtain
16:00 1.57 4
and with
sed 's/\[.[1234567890]]//g' file1 > file2
does not work if the string contains more than 2 digit.
how can i do this?