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.
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
© 2022 - 2024 — McMap. All rights reserved.