I have this command:
7z e -oD:\Data\ODS_Source\* D:\Data\DATA_DROP\Source.zip
This results in D:\Data\ODS_Source\Source\<files>.<ext>
I need D:\Data\ODS_Source\<files>.<ext>
How do I eliminate the folder creation?
Thanks.
Try this instead:
7z e -oD:\Data\ODS_Source D:\Data\DATA_DROP\Source.zip
# extract with sub-dirs to ./tn
7z x -otn lc-3.39.0.zip
# move to . skipping ./tn/<junk_root>/*
mv tn/**/* .
# remove empty ./tn
rm -rf tn
incidentally does this unscrupulously per all root (assumed) junk dirs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With