So I have one or the other file, that needs to be extracted to a directory. And why not name it as the archive itself .. Only problem with it is the handling of variables with bash …
Try it yourself, stuff some directories with a space in inside a variables, and use something like this:
And now take a look at the output of that ..
Means, the ` mkdir’ created a directory for every entry in the ` ls’ output that was separated by a space char … and I’ve no frickin clue on how to get that thing right … 😠
Update: Thanks to Roy I know how one handles such things … 😬 It’s rather simple g
| |
That should give you the desired effect ❗