mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
parallel: --joblog for --(n)onall
This commit is contained in:
parent
76c477d94d
commit
f0540d5c23
|
@ -115,6 +115,7 @@ if($::opt_nonall or $::opt_onall) {
|
||||||
join(" ",
|
join(" ",
|
||||||
((defined $::opt_u) ? "-u" : ""),
|
((defined $::opt_u) ? "-u" : ""),
|
||||||
((defined $::opt_group) ? "-g" : ""),
|
((defined $::opt_group) ? "-g" : ""),
|
||||||
|
((defined $::opt_joblog) ? "--joblog $::opt_joblog" : ""),
|
||||||
((defined $::opt_colsep) ? "--colsep ".shell_quote($::opt_colsep) : ""),
|
((defined $::opt_colsep) ? "--colsep ".shell_quote($::opt_colsep) : ""),
|
||||||
((defined @::opt_v) ? "-vv" : ""),
|
((defined @::opt_v) ? "-vv" : ""),
|
||||||
((defined $::opt_D) ? "-D" : ""),
|
((defined $::opt_D) ? "-D" : ""),
|
||||||
|
|
|
@ -148,7 +148,7 @@ Wait for all commands to complete.
|
||||||
Run one gzip process per CPU core. Block until a CPU core becomes
|
Run one gzip process per CPU core. Block until a CPU core becomes
|
||||||
available.
|
available.
|
||||||
|
|
||||||
for i in `ls *.log` ; do
|
for i in *.log ; do
|
||||||
echo $i
|
echo $i
|
||||||
sem -j+0 gzip $i ";" echo done
|
sem -j+0 gzip $i ";" echo done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue