man -t file | ps2pdf /dev/fd/0 > file.pdf
-t Use /usr/bin/groff -Tps -mandoc to format the manual page, passing the
output to stdout. The default output format of
/usr/bin/groff -Tps -mandoc is Postscript, refer to the manual page
of /usr/bin/groff -Tps -mandoc for ways to pick an alternate format.
man apachectl | col -b > apachectl.txt
ps2pdf file.ps > file.pdf
pdf2ps file.pdf > file.ps
unix2dos -c ascii -n infile outfile
iconv -f gbk -t utf8 -o file.utf8
#!/bin/bash
#Program:
# Convert encoding of given files from one encoding to another
#History:
#11/22/2009
#read -p "Please input a directory as absolute path: " dir
files=$(ls --format=single-column|grep -v 'iconv.sh')
for filename in $files
do
iconv -f big5 -t gb2312 ${filename} | \
iconv -f gb2312 -t utf8 -o ${filename}
done
阅读(545) | 评论(0) | 转发(0) |