A simple sed command to remove string and numbers wrapped inside brackets [ ] to cleanup your text or csv data.

For example occurrences such as [1123] and [apples] will be removed by this command.

This command takes input and creates a cleaned file

sed 's/\[[^]]*\]//g' file.csv > cleaned.csv