I have little problem with specifying my variable. I have a file with normal text and somewhere in it there are brackets [ ] (only 1 pair of brackets in whole file), and some text between them. I need to capture the text within these brackets in a shell (bash) variable. How can I do that, please?
I have little problem with specifying my variable. I have a file with normal
Share
Bash/sed:
If that is unreadable, here’s a bit of an explanation: