have a folder with sub folders. I want to remove [ garbage.com ] from each folder name. I would like to remove the space after the ]
Currently
$ ls
[ garbage.com ] happy
[ garbage.com ] Sad
[ garbage.com ] confused
dog
cat
rat
.....
After script
$ ls
happy
Sad
confused
dog
cat
rat
I tried the find command but the [] and space are messing me up.