mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
5804beca6d
commit
12626e7c1d
22
convert-man-pages-to-postscript-for-printing.sh
Normal file
22
convert-man-pages-to-postscript-for-printing.sh
Normal 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
2
manTtoPS.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
man -t $1 > $(basename $1).ps
|
Loading…
x
Reference in New Issue
Block a user