Add files via upload

This commit is contained in:
kneutron 2023-04-03 09:25:54 -05:00 committed by GitHub
parent 5804beca6d
commit 12626e7c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#!/bin/bash
# REF: https://distrowatch.com/weekly.php?issue=current
# REF: https://stackoverflow.com/questions/28357997/running-programs-in-parallel-using-xargs/28358088#28358088
cd
mkdir -pv Printable-Manual-Pages ; cd Printable-Manual-Pages
pwd
#time find /usr/share/man/man? -type f -print0 |gxargs -0 -t -I % -n 1 -P $(nproc) manTtoPS.sh % # "man -t "%" > $(basename "%").ps"
time find /opt/local/man/man? -type f -print0 |gxargs -0 -t -I % -n 1 -P $(nproc) manTtoPS.sh % # "man -t "%" > $(basename "%").ps"
du -s -h
date
exit;
for page in $(find /usr/share/man/man? -type f); do
echo "Processing $page"
man -t "$page" > $(basename "$page").ps
done

2
manTtoPS.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
man -t $1 > $(basename $1).ps