Sometimes zip files are rude and don't have a top directory. Here's a one-liner to unzip a bunch of archives into directories named after each file:

```
for f in *.zip; do unzip -d ${f/.zip/} $f; done
```

#bashTricks #shTricks #shellTricks

@egypt After so many decades of being burned by zips that don’t have top level directories (TLD), I always unzip into my own TLD. which is extra annoying when they then have a TLD and I just prepared for the worst.

I feel like I should alias a script to manage this for me but…..