zipping files iterativelyZipping files two by twoExcluding a directory when zipping filesManipulating and...
Why do sellers care about down payments?
Which is the current decimal separator?
What exactly is a marshrutka (маршрутка)?
Thematic, genred concepts in Ancient Greek?
What are uses of the byte after BRK instruction on 6502?
POSIX compatible way to get user name associated with a user ID
Does deswegen have another meaning than "that is why"?
What's 待ってるから mean?
Can you add polynomial terms to multiple linear regression?
Sort files in a given folders and provide as a list
How would you control supersoldiers in a late iron-age society?
Will the UK home office know about 5 previous visa rejections in other countries?
Planar regular languages
How are aircraft depainted?
What hard drive connector is this?
What was redacted in the Yellowhammer report? (Point 15)
Make 2019 with single digits
Is low emotional intelligence associated with right-wing and prejudiced attitudes?
What does a Light weapon mean mechanically?
How to publish superseding results without creating enemies
Diffraction of a wave passing through double slits
If the gambler's fallacy is false, how do notions of "expected number" of events work?
Are space camera sensors usually round, or square?
If I want an interpretable model, are there methods other than Linear Regression?
zipping files iteratively
Zipping files two by twoExcluding a directory when zipping filesManipulating and saving multiple filesZipping files two by twoBash: Zipping/grouping files by common substringTar files in orderShells initialization filesIteratively write to the same process substitution file on MacOsConvert all video files in a folder to images per frame using ffmpeg iterativelyArgument list too long when zipping large list of certain files in a folderIteratively adding value to column of text file
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have a folder with 77K PDFs(~500 GB in size). I want to zip them into 77 zipped files, each containing 1000 PDFs, so that they are easier to upload and share with peers. I don't know how to write for loops in bash and use the zip commands there, but I saw some examples in this question. Can someone help me out here?
The filenames go like this :
FinalRoll_MR_ACNo_@PartNo_%%.pdf
The @ and %% are numbers. If I can zip the first 1000 files in a file like archive_1.tar.gz and so on, then it'd be great! If we can retain the order of files in alphabetical order, then it'll be even better!
I am using an AWS server that's running Ubuntu.
Thanks in advance!
bash shell filenames archive
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
I have a folder with 77K PDFs(~500 GB in size). I want to zip them into 77 zipped files, each containing 1000 PDFs, so that they are easier to upload and share with peers. I don't know how to write for loops in bash and use the zip commands there, but I saw some examples in this question. Can someone help me out here?
The filenames go like this :
FinalRoll_MR_ACNo_@PartNo_%%.pdf
The @ and %% are numbers. If I can zip the first 1000 files in a file like archive_1.tar.gz and so on, then it'd be great! If we can retain the order of files in alphabetical order, then it'll be even better!
I am using an AWS server that's running Ubuntu.
Thanks in advance!
bash shell filenames archive
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You say "zip" (which is an available utility), but then show a sample output filename of .tar.gz, which implies a gzipped tar file. Which would you like?
– Jeff Schaller♦
11 mins ago
add a comment
|
I have a folder with 77K PDFs(~500 GB in size). I want to zip them into 77 zipped files, each containing 1000 PDFs, so that they are easier to upload and share with peers. I don't know how to write for loops in bash and use the zip commands there, but I saw some examples in this question. Can someone help me out here?
The filenames go like this :
FinalRoll_MR_ACNo_@PartNo_%%.pdf
The @ and %% are numbers. If I can zip the first 1000 files in a file like archive_1.tar.gz and so on, then it'd be great! If we can retain the order of files in alphabetical order, then it'll be even better!
I am using an AWS server that's running Ubuntu.
Thanks in advance!
bash shell filenames archive
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a folder with 77K PDFs(~500 GB in size). I want to zip them into 77 zipped files, each containing 1000 PDFs, so that they are easier to upload and share with peers. I don't know how to write for loops in bash and use the zip commands there, but I saw some examples in this question. Can someone help me out here?
The filenames go like this :
FinalRoll_MR_ACNo_@PartNo_%%.pdf
The @ and %% are numbers. If I can zip the first 1000 files in a file like archive_1.tar.gz and so on, then it'd be great! If we can retain the order of files in alphabetical order, then it'll be even better!
I am using an AWS server that's running Ubuntu.
Thanks in advance!
bash shell filenames archive
bash shell filenames archive
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 10 mins ago
Jeff Schaller♦
49.7k11 gold badges73 silver badges165 bronze badges
49.7k11 gold badges73 silver badges165 bronze badges
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 45 mins ago
VibhuVibhu
11 bronze badge
11 bronze badge
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Vibhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You say "zip" (which is an available utility), but then show a sample output filename of .tar.gz, which implies a gzipped tar file. Which would you like?
– Jeff Schaller♦
11 mins ago
add a comment
|
You say "zip" (which is an available utility), but then show a sample output filename of .tar.gz, which implies a gzipped tar file. Which would you like?
– Jeff Schaller♦
11 mins ago
You say "zip" (which is an available utility), but then show a sample output filename of .tar.gz, which implies a gzipped tar file. Which would you like?
– Jeff Schaller♦
11 mins ago
You say "zip" (which is an available utility), but then show a sample output filename of .tar.gz, which implies a gzipped tar file. Which would you like?
– Jeff Schaller♦
11 mins ago
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Vibhu is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541499%2fzipping-files-iteratively%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Vibhu is a new contributor. Be nice, and check out our Code of Conduct.
Vibhu is a new contributor. Be nice, and check out our Code of Conduct.
Vibhu is a new contributor. Be nice, and check out our Code of Conduct.
Vibhu is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541499%2fzipping-files-iteratively%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You say "zip" (which is an available utility), but then show a sample output filename of .tar.gz, which implies a gzipped tar file. Which would you like?
– Jeff Schaller♦
11 mins ago