Chinaunix首页 | 论坛 | 博客
  • 博客访问: 716302
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: LINUX

2011-01-17 20:01:52

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
阅读(504) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~