Progress bar to display progress based on number of files found/completed in for loop?Is there a command line...
How to prevent bad sectors?
What are these arcade games in Ghostbusters 1984?
Would jet fuel for an F-16 or F-35 be producible during WW2?
What are the benefits of cryosleep?
Crossing US border with music files I'm legally allowed to possess
reinterpret_cast from rvalue to rvalue reference
Plot twist where the antagonist wins
When do characters level up?
How long does it take to crack RSA 1024 with a PC?
Why does the 'metric Lagrangian' approach appear to fail in Newtonian mechanics?
How do you say “buy” in the sense of “believe”?
Why does the 6502 have the BIT instruction?
How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?
Windows 10 Programs start without visual Interface
PETG layer adhesion
Can a Beholder use rays in melee range?
Why do they consider the Ori false gods?
How do I align equations in three columns, justified right, center and left?
Rests in pickup measure (anacrusis)
Would the Geas spell work in a dead magic zone once you enter it?
How many chess players are over 2500 Elo?
Command to Search for Filenames Exceeding 143 Characters?
Canon 70D often overexposing or underexposing shots
Apparent Ring of Craters on the Moon
Progress bar to display progress based on number of files found/completed in for loop?
Is there a command line utility that copy files with progress information?Parse two files input in for/while loopHow to use 3rd variable in BASH for loop?Display a progress bar while we wait for a process to returnInterrupting a for-loop in bash, but only after an iteration is completed?What happens when files are added/removed in the middle of a “for f in *” sh loop?for loop for files containing specific characters (“rem_trim”) in the file nameHow can I make a progress bar for a shell script calling an executable?Basic progress bar for each line of output in an async bash scriptBash for loop on all files in folder except one
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Is there a progress bar that can show visually completed progress based on the number of detected files found and completed in a for loop like the one below?
for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; done
bash shell-script command-line scripting for
add a comment |
Is there a progress bar that can show visually completed progress based on the number of detected files found and completed in a for loop like the one below?
for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; done
bash shell-script command-line scripting for
add a comment |
Is there a progress bar that can show visually completed progress based on the number of detected files found and completed in a for loop like the one below?
for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; done
bash shell-script command-line scripting for
Is there a progress bar that can show visually completed progress based on the number of detected files found and completed in a for loop like the one below?
for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; done
bash shell-script command-line scripting for
bash shell-script command-line scripting for
asked 32 mins ago
AnonymousAnonymous
1157
1157
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I suggest to keep a string for the progress bar, fill it with some character for each file and replace them with another during your loop:
bar=""; for i in *.EXT; do bar=$bar-; done; for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; bar=${bar/-/=}; printf "%sr" $bar; done
add a comment |
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/3.0/"u003ecc by-sa 3.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
});
}
});
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%2f521229%2fprogress-bar-to-display-progress-based-on-number-of-files-found-completed-in-for%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I suggest to keep a string for the progress bar, fill it with some character for each file and replace them with another during your loop:
bar=""; for i in *.EXT; do bar=$bar-; done; for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; bar=${bar/-/=}; printf "%sr" $bar; done
add a comment |
I suggest to keep a string for the progress bar, fill it with some character for each file and replace them with another during your loop:
bar=""; for i in *.EXT; do bar=$bar-; done; for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; bar=${bar/-/=}; printf "%sr" $bar; done
add a comment |
I suggest to keep a string for the progress bar, fill it with some character for each file and replace them with another during your loop:
bar=""; for i in *.EXT; do bar=$bar-; done; for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; bar=${bar/-/=}; printf "%sr" $bar; done
I suggest to keep a string for the progress bar, fill it with some character for each file and replace them with another during your loop:
bar=""; for i in *.EXT; do bar=$bar-; done; for i in *.EXT; do PROGRAM OPTION1 OPTION2 "$i"; bar=${bar/-/=}; printf "%sr" $bar; done
answered 10 mins ago
PhilipposPhilippos
6,42811951
6,42811951
add a comment |
add a comment |
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%2f521229%2fprogress-bar-to-display-progress-based-on-number-of-files-found-completed-in-for%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