ȥå   ʬ Хåå   ñ측 ǽ   إ   ǽRSS

Linux

Last-modified: 2013-12-10 () 14:50:12 (1291d)
Top / Linux

LinuxȤǤΥ⡢ޥɤʤ


vimȤݤ

viǥˤĤƤΥ⡣
ɰΩĤΤ:helpǤĤȤȳؤ֡륳ޥɤΩäȼΤ˺ΤǥɬפʤΤǤ롣
ͤˤƤƤ륵ȡ꤬䡪
J3

ݥåץåפطʿѤ

֤ǽФƤݥåץåפå󥰥ԥ󥯤ʤΤǡܤ˻ɤ뤿ꤹ롣

:highlight Pmenu ctermbg=lightgray ctermfg=blue

ǡطʿlightgrayǡʸblueˤʤ롣

λƤޤäꤷȤswpեɤ߹

ޤ˥ץ˽ʤɤǶλʤȤʤʤäȤˡǥ󤬼Ƥޤäơäꤹ뤬ΤȤswpեɤ褵褦

:recover .swp

򾧤Уϣˡ

ƥȥ֥ȤȤ

ƥȥ֥ȤؤǤ롣ȤС

cout << "ahoaho" << endl;

ߤʷäơ""ȤѤȤˡ

ci"

Ϥ뤳Ȥǡ"ڤȤcƤ롣
Ū

[̿][ϰ][ڤ]

ǹƤꡢ̿ΤȤϤʤߤc,d,yʤɤȤ롣ϰϤa,iʤɤǻꤷڤ"'ʤŬʤΤꤹ롣ϰϤiΤȤ϶ڤȤΤߤоݤȤaΤȤ϶ڤޤ᤿ΤоݤȤ롣

ǡsorround.vimȤץ饰ȤȡϰϤsȤ褦ˤʤ롣ϤޤĤޤڤ"'оݤȤ뤳ȤǤ뤿ᡢȤФäʸ

cs"'

ȤС"'˽񤭴뤳ȤǤ롣
ȤƤǤ

쵤˥ǥȤ롣

vŬϰϤ򤷤ơ=ȡɤǥǥȤ롣Ȥ롣

եγĥҤȤưѤ

Ȥ

nmap <Space>/ I#<Esc>

Τ褦ˡȥȤñˤ륷硼ȥåȤȤȤĥҤȤưѤȤ.vim/filetype.vim˰ʲΤ褦ɵơ

augroup filetypedetect 
  au BufRead,BufNewFile *.cc setfiletype C++
  au BufRead,BufNewFile *.vim setfiletype vim
  au BufRead,BufNewFile *.c setfiletype C
  au BufRead,BufNewFile *.csh setfiletype cshell
augroup END

줾бե.vim/ftplugin/βˡȤchell.vimȤäȡ

nmap <Space>/ I#<Esc>

ߤ̤˵Ҥ롣dzĥҤȤưѤ롣

tabȤäƤȡֺǸ˳ĥҤΤΤ꤬ѹ롣ʤȤʤ󤫤ʡڤؤ뤿Ӥ˥륽ɤߤ˹ԤȤ

ưط

Ctrl+f,BCtrl+u,d롣
̤ΥǤϡ֤岼˲̤ڤؤ뤳ȤΤǤz(Return),z-
(2011.5.16ɵ)
̤ΰ־ӤȤϡH̤ΰֲӤȤϡLǤ롣
(2011.5.31ɵ)
ιԤκǽζƤʤʸ˰ưˡϡ^OKư{Ȥ}Ȥ

ХåեȤ

ƥХåեδ֤Ԥ褹뤿aliasΤǥ⡣Ū˥Хåեΰư

:ls

ǥХåեֹǧȡ

:buffer #

ǰư롢Ȥ硣
򤤤񤯤ΤݤΤǡ.vimrc˰ʲ񤯡

nmap <Space>b :ls<CR>:buffer
nmap <Space>v :vsplit<CR><C-w><C-w>:ls<CR>:buffer
nmap <Space>j :bn<CR>
nmap <Space>k :bp<CR>

ڡȤơbǥХåեξ֤ǧƤȤֹǤĤξ֤ˡvǽĤʬ䤷֤Ʊư򤹤롣ޤڡ+j(k)ΥХåե˰ưǤ롣

  • >äѤꡢȤɤ⡢ʤˤ˻ȤޥɤǤʤΤǡ<Space>\ѹ<Space>ϤäɤȤȤƤϤ롣

ʸΥ󥯤ˤȤ

ʸǥѥ񤤤Ƥʸ򳫤礬롣Ȥ

gf

ȤСvimǴñ˳ȤǤ롣
ΤȤʸ񤬤ʤʤäƤޤ(å?)ˤϤȤС

Ctrl-0

Ctrl-^

ɤCtrl-0ϸΰ֤Ȥ̣ǡCtrl-^ϸΥեȤ̣
֤dzȤ

Ctrl-w gf

OKֺΥ֤˳롣֤Τ

Ctrl-w f

ǡȤˤƾɽѥ󡣤Сñ˻ȤơñĤ뤳ȤǤ롣

֤ǥե򳫤

ʲΤ褦

:tabnew [filename]

ǤƤп֤򳫤롣
֤ڤؤgtȤ:tabn,:tabpǤ롣2ܤΥ֤˰ư2gtȤаȯǰưǽȤgT
֤ĤȤϡ:tabcloseǥȥְʳĤȤ:tabonlyOK:taboȤǾάġ

read̥եƤή

¾ΥեƥץˤȤˡޤΥե˥ԡȤ롣Ȥ

:read [եؤΥѥ]

ȤOKͿʤȤˤϼʬȤ롣

readϤȤмΤ褦˱ѤǤ롣

:read !ls

ls̤ȥݥ˥ԡ롣

ͤˤƤꡣ
̵̾λȤ

ޥɥȤʤ

˵äƤ狼䤹ä
ñ˰㤦ե򳫤ƥԥڤȤǤ

ԥڤԤޤн

˺줽ʤΤǥ⡣
viȤäƤơޤ¾ΤȤ饳ԡȤ˹Ԥޤ뤳Ȥ롣autoindentΤDzԤ뤿ӤindentƤ뤳ȤʤΤǡ

set noautoindent

OKθautoindentᤷ

set autoindent

롣¤ϼΤ褦˾άǤ롣

se noai
se ai

󥿥󡢥󥿥

ޤȤƥȥ

ƬˤޤȤ//줿ȤȤϤ롣

Ctrl+v
ư
shift+i
줿ʸ
Esc

դ˹ƬäȤ

Ctrl+v
ư
d

OK!

ϰ򤷤ƥǥ

vʸȡV󤴤Ȥ˥ӥ奢ŪϰǤ롣θ塢>>ǤޤȤƱեȡ
αեȤѤȤˤ

:set shiftwidth=2

ʤɤѤ롣

ޥ

ε򤫤ä
Ctrl+FCtrl+BΥ饯󤵤ȾüʤȻפޤ

ϥ饤ȤEscǾä롢Ȥ

nmap <Esc><Esc> :nohlsearch<CR><Esc>

򿿻ɤ ¾ͤˤʤڡߤĤ
󥸥˥μͭ
ȡ⡼ɻΥ硼ȥåȡEsc=Crtl+[˴ư J3
J3toppage

Firefox饤ˤǤadd-on롣줿餹Ȼפ
perator

2011.4
ʥåεǡvị꤬äΤǡɤʤΤ򿿻

ڡǤޤʤ˥ݻʤư
nnoremap <Space> jzz
nnoremap <S-Space> kzz

set cursorline
Ρޥ⡼ɤǤ꥿򲡤Ȳ
noremap <CR> o<ESC>
v󲡤ǹޤ
vnoremap v $h

ϤΤˤʤ뤫⡣ʳ˥꥿꤬

2011.4.7ɲ
gvimǤȤХåץܡɤͭȤ

set clipboard=unnamed

ȤХԥڤǤ롣 ޤ󥯥󥿥륵Ȥ

set incsearch

Ȥ롣 Ȥʸʸ

set smartsearch

٤ʥǥ

set smartindent

ʤɤǻߤޤʤ褦ˤ

set whichwrap=b,s,h,l,<,>,[,]

ΤȤǸޤǤäǽʤ

set nowrapscan

powerdotΥ

Ѥݤ㤦⤬ʤΤǡ̵ǥå褯饤ɤʤʤõƤߤ
TeXǥ饤ɤ񤯤class褦ǡpowerdotȤäǸƤ롣Ƴ򻲹ͤˤƤޥ˥奢⤢ߤǡܸΤꤷҤȤޤäƤߤ褦

ޤޤ

powerdot
listings
enumitem 
xcolor

styեdownloadƤ롣
ʬĶTeXstyleեꤷΤǡʬ/usr/sty/ǥ쥯ȥäơ.cshrc

setenv TEXINPUTS  ʬ/usr/sty//

ɵƤǼʬ/usr/sty/ʲΥ֥ǥ쥯ȥޤstyեõ˹ԤäƤ롣
Ķѿ̤ä顢ξinsեʤɤstyե롣

platex xcolor.ins

ȤǰȯOK餷Ϥʤʤ
ǺȯdocstripxkeyvalpstricksäꤷǤ褯ʬʤ

platex aaa.ins

򤷤Ƥ⡢

* First type the extension of your input file(s):  *

ȤԲĻ׵ĤʤȤ֤롣褯狼󡣤֤ŬФǤstyեϤФƤɡŬʬ󡣤⤷ƱѸɤƤʤ

powerdotȤˤϡxkeyvalpstricksxcolorenumitemΥѥåɬפȤʤ Τǡ⤷ʤä饤󥹥ȡ뤷ƤƤ
ʤ嵭μProsper򥤥󥹥ȡ뤷Ƥǽ񤤤Ƥޤ
powerdotưˤϡCTANɤС1.24ʾprosper.clsɬפǤ

ȤΤȤʤΤǡprosperɲá
colortblextsizes⤤Ȥ塣ʤ󤫤褯ʬʤʤäƤ

⤦ġ Ф̤μʬ
./usr/sty/ʲˤ٤Ƥޤ

shell memo

shell scriptλȤȤ˺Ͽ
bash,tcshellξ礬Τǡդ٤

Ťե

ȤĤƤquotaδطǰ̤Ȥ롣ΤȤ˥եǤ᤿Ȥ˸ŤեäȤäơΤ꤫ΥޤäȻͤˤƤ

find ./ -mtime +50 -name "*.txt" | xargs rm -f

ϤФޥɤʤΤǡʲΥޥɤǥåƤˤ褦

find ./ -mtime +50 -name "*.txt" | xargs ls


ʤߤˡfind+50-50ˤȡֺ50פȤֺ꤬50פȤˤʤ롣ñ50ȡ50˹줿եפˤʤ餷

shared memoryλѾå

üshared memoryλѾ

ipcs

򤦤Ƥʬ롣
Ȥˤϡ

ipcrm

Ȥ

ipcclean

Ǿä롣ΤȤ˼ʬΥץäƤʤդ롣

Ȥǥ쥯ȥΥեΤƥեѥ¸

ǥ쥯ȥˤեΥѥ򤹤٤夷ꥹȤꤿȤˤϡ

find `pwd` ./* -type f >> aho.dat

Ȥ롣
\-type f ץĤȡեΥѥϤ롣

postscriptե˼ʬΥѥ񤭹

ץåȤȤ֥åŽäƤȡեɤ֤ʬʤʤΤǡȤ˼ưŪˤΥѥդä褦ˤ롣ۤäݤɡpostscriptȤľܽ񤭹̵ɽƤߤ(ʲbash)

#Add footer to postscript file
tmp_path=$(pwd)"/"$NAME_OF_PS
str="0.5 0.5 0.5 setrgbcolor \n gsave  2948 1999 0 0 C 10 10 t 0 r \/Helvetica-Italic findfont 30 sf 0 0 m ("$tmp_path") show \n showpage"
sed -e "s#showpage#$str#g" $NAME_OF_PS > $NAME_OF_PS_out

äƤΤϡpostscriptȤΡshowpageפ򸫤ĤƤִƤ
ǡ٤ƤΥڡκ˥ѥ񤭹ޤϤ ʸ֤ϡ10 10פʬʸϡ30פʬǤ롣ʸοϺǽsetrgbcolorꤷƤ롣RGBǡ0-1δ֤ǻøĤ롣Ωʤ褦˳ˤƤ롣
ץȤˤäĤСȤˤ񤭹ޤƤ
ޤ˰ǤʤȤ뤱ɡϤ⤦ʤps2psȤ餤Ȥ⤢뤷ʤȤ⤢롣ȤϤΤǤ롣

bsubǥ֤λȤ˥᡼뤬ʤ褦ˤ

֤٤ˤäƤ᡼롣줬1000ñ̤ǤΤǡǥƤФʤΤǡ᡼Фʤ褦Ĵ롣
꤫ϴñbsubȤ򳫤ơ֥ޥ

qsub -e /dev/null -o /dev/null -m eas -M ᡼륢ɥ쥹

ȤʤäƤΤ

qsub -e /dev/null -o /dev/null -m as -M ᡼륢ɥ쥹

Ȥ롣
ޤߤ

ե륵Ū˥åơ̤Ķ

Хå֤ꤲȤɸϤĤŤ.nqsǥ쥯ȥ꤬ɡ줬äƤquta򿩤ԤƼԤ롣
.nqsǥ쥯ȥŪ˴ƻ뤷ơ̤Ķrm&mkdir륹ץȤ֡礷ȤϤƤʤ

#!/bin/sh

rm -f .chk_nqs
du /home/$USER/.nqs > .chk_nqs

fsize=`du /home/$USER/.nqs | awk '{print $1}' ` 

#¤5GBˤƤ
if [ $fsize -gt 5000000 ]
then
   rm -rf /home/$USER/.nqs
   mkdir /home/$USER/.nqs
fi

crontab30ʬ˲󤷤Ƥ롣

2011.10.31
GBquotaԤʤ褦ˤˡȯλ¿ˡȤϡե뤬礭ʤ븶ǤɸϤ򥳥ȥȤȤˡ

üΥǥեȤΰ֤ȥƤ

gnomeü򳫤Ȥ˥ǥեȤǥʤɤѤƤȡʤɤΤdzڡ
꤫ gconf-editor

desktop->gnome->applications->terminal
execפͤѤ롣
gnome-terminal --geometry=WIDTHxHEIGHT+X+Y

ѥͥɲäƤȤˤϡåƥץѥƥǤǽ

.cshrc

ȤäƤޤzshʤˤ餷ɡʤ˻ȤʤƤʤΤǤޤ䡣

bindkey "^W" backward-delete-word

Ctrl+WǰʸХåڡ줬ʤꤿä

bindkey -k up history-search-backward
bindkey -k down history-search-forward
bindkey "^P" history-search-backward
bindkey "^N" history-search-forward

ǤCtrl+P,N򲡤ȡ򸡺䴰Ƥ褦ˤʤ롣

set ltn = `set | grep tty | cut -f 2 | cut -c 4-5`
set prompt = "[%{^[[34m%}%m:%{^[[35m%}%n%{^[[0m%}]%c3%# "
unset ltn

ץץꡣΥȤ򻲹ͤˤƤ
餵Τ⤵

ʤߤforwardññ̤deleteȤ

Alt-d

ǤǤ롣

AWKˤĤ

shellɤΤʬʤɡץȤ񤯤ȤˡñʸѿȤä׻ԤȤ˽롣
ͥڡ...
AWK
AWKλȤ

׻ΥǡХååפȤ

¸ΥޥΥХååפȤ롣ˡϥǥСautofsǥޥȤƤơŪ

cp -a

¹Ԥ
Τ

vi /etc/auto.master

ԽƥޥȡcrontabŪ˥ץȤ¹Ԥ롣
cpȤalias

cp -i

򤭤ƤΤǡ̵뤹뤿

\cp -a

Ȥ롣

findȤʤ

Хε顣Ȥ餫ʤ褵ľޤȤʤƤʤΤǡɤɤڤ

DNSС䤤碌IPɥ쥹ɽ

Τޤޡ

nslookup www.google.co.jp

ȤСֶ᤯DNSФʹ˹Ԥ

Ʊǥ쥯ȥβ礷pdfե˽Ϥ

ץȤ񤤤Ƥߤ
fileconvlife.sh
ȤϿǥ쥯ȥäƤ˷礷եޤȤơȤФηbmpʤ

. convlife bmp

OK
ե٥åȽ˥ڡΤǡ֤̾ѤƤ館ФǤ Ŭ˲600ꤷƤ뤱ɡŬѤƤ館OKȻפޤ
ǸpsեõƤޤΤǡǥ쥯ȥpsե֤ʤ褦ˤޤ礦

äȲ¤˥եꤹΤ˺Τǡե褦errorȡpsեäζݤ̤к̾ѹޥpathäƻȤäƤޤʳ
filemogrify2pdf

äѤꥵĴᤷΤǡ˥Ǥ褦ˤ
filemogrify2pdf_2

usage:./mogrify2pdf [picture type] [output size(defalt=600)]


epsեϤ虜虜psˤʤƤgsޥɤѴǤ뤷ΤۤɤΤDz򤷤ޤepsեȤޤgrepǤʤƱڡĽϤ뤳ȤäΤ򤷤lsΤȤ-vץĤơˤʤäƤ֤ˤʤ褦˥ȤŬ
epsʤȤȤˤΤǡʤȤʤȥڡ֤ѤʤΤǡĴᤷ
filemogrify2pdf_3

ޥɥ饤ǥǥ쥯ȥꤷƥե֥饦ư

CentOSΥեޥ͡NautilusȤäƤ롣Τ

nautilus ѥ

ȤGUIŪ˳롣

ǥ쥯ȥβեޤȤconvert

ʤȻפäơïäƤȻפäƸƤߤäѤhit PCХ
ɡmogrifyȤޥɤäơ
psեepsѴȤϡ

mogrify -format eps *.ps

OK!
UNIXΥڡ˻ȤäĶ

cshץȤΥ

ޥɤ䥷륹ץȤäȤȤǧ뤿ΡλɤȤΤ롣
λ

sftp

sshѤΤҤȤĤsftp롣ϤΤޤޡsecureftpפΰ̣ǥ⡼ȥۥȤˤ褦ʵʬǥޥ"download"⤷"upload"Ǥ롣ʵȤơputget롣

put ԡΥե̾ԡΥե̾

ǥۥȤ⡼ȥۥȤ˥ե򥳥ԡ롣

get ԡΥե̾ԡΥե̾

ǥ⡼ȥۥȤۥȤ˥ե򥳥ԡ롣 ޤlsǥ⡼ȥۥȡllsǥۥȤ礷lsԤꡢƱΤcdǤ⤹롣
Ȥʤ
ΥڡͤˤʤäSSHޥ˥奢

pdfimages

pdfե뤫եΤߤȴФ
pdfimagesȤ뤬äơ

pdfimages input.pdf output

ȻꤷƤǡoutput-ȤեäƤ롣
ޤץ-jȤjpgեȤƽϤ롣
¾ΥץϼΤȤꡣ

-f startpage# ȴФϥڡ
-l endpage# ȴФλڡ
-j DCTDiscrete Cosine TransferΥѴˤβJPEGǽ
-opw ѥ ʡѥɡʸΰԽʤɤ¤뤿Υѥɡˤ
-upw ѥ 桼ѥɡʸ򳫤Υѥɡˤ

Ǥ

cdȤ˼ưŪls¹Ԥ

CϤǻȤʵ.cshrc

alias cwdcmd 'ls'

ȤХǥ쥯ȥ꤬ѹ뤿Ӥls¹Ԥ롣llˤܺ٤ɽ롣Ǥ̤˥ե뤬ϷˤʤΤǡե뤬¿lsʤȤǽ񤤤ҡˤʤ󤸤ʤġǤͤϤޤ

cwdcmdprecmdϤ줾tcsh̤ʥꥢǡꤵƤϼưŪ˼¹Ԥޤ ǥեȤǤ̤ˤʤäƤޤܺٵڤӤ¾̤ʥꥢtcshΥޥ˥奢 񤤤Ƥޤ

ȤȤ()CȤˤaliasߤ

ߥʥ夲Ȥ˥åɽ

˺Τǡޥɥ饤ü夲(sshlogin)Ӥ˥åɽȻפä.cshrc

cat userdir/message.dat

ȤƤߤʤlessɽ٤message.datƤˤʤäƤޤä
lessγĥǽǤLESSOPENѿȤΥ륳ޥɤcshellƤӽФƤ뤿ǡtcsellȤ٤.csrcϼ¹Ԥ뤫message.datɽƤȽ
tcshellȤ٤˥åФΤǤϤʤɤߥʥ򤢤ȤåФĤȡõƤߤߤĤʤΤǡȤä̵롣.cshrc

#message
set msfrag=`env | grep -c msfrag`
if ($msfrag == 0)then
cat userdir/message.dat
setenv msfrag 0
endif
unset msfrag

­
äƤ뤳ȤϡsetǥѿmsfragΤʤ˴ĶѿmsfragȤʸοơ줬0ʤcatǥե񤭽Ф⤷񤭽Ф줿ĶѿmsfragꤵΤǡ٤ϥѿmsfragɬ1ˤʤ롣Τifϼ¹Ԥʤʤ虜虜ĶѿmsfragäƤ뤫Ȥȡѿsetˤ˼¹Ԥ줿륳ޥɤĤäƤΤǡ줬ޤ޹礦Զ򵯤ǽ뤿ᡣǰΤᡣ
ɤˡΤäƤ϶Ƥ

äѤ.cshrc˽񤯤ΤϤޤ褯ʤߤscp򤷤Ȥ˵ươϤɤä餤狼餺˽λƤޤ
ΤޤޤؤʤΤǡ.login˽񤯤äѤꤽloginȤɽ줺֥ߥʥ򤢤ȤɽפȤŪãǤʤ
sshȤscpȤscriptɤǤߤ뤷кΩΤġ³ԤƤޤ

褷ޤ
ŪˡsshȤäƤȤΩĴĶѿǾʬפȤˡscpʤɤΤȤ˵򤷤
Ȥssh򤷤ȤSSH_CLIENTSSH_TTYȤĶѿΩäƤ롣줬뤫ʤǾʬ򤷤ʤߤ˾ʤäơ

$?ѿ̾

ѿ줿ΤʤΤ̤ʤΤĴ٤뤳ȤǤ롢ȤȤäʬ⥹ޡȤˤ.cshrc˽񤭲äΤϼʬ

#message
if (! $?msfrag) then
 if (! $?SSH_CLIENT || $?SSH_TTY ) then
  cat ǥ쥯ȥ̾/message.dat
  ls
 endif
 setenv msfrag 1
endif

OK!ĤʤϤ!

ʤȤޤȯΥɤ񤤤Ƥ顢rebootȵưʤʤä
envǴĶѿ򸫤Ƥߤ顢msfragΩäƤƤߤΤɤΥߥ󥰤Ǽ¹ԤơäȻĤäƤΤ
msfragsetǥѿˤƤ⡢ifʸˤϰäʤߤǡᡣɤˡϤʤΤġ³

ƥȥ١web֥饦

firefoxĴҤΤǡ¾ˡõõȥߥʥǥƥȥ֥饦Ȥäweb³뤳ȤǤ뤳ȤʬälynxȤץꥱ
lynxδñ

w3mȤ⤢餷emacsʻƻȤȤW3M

ץȤʥƥ˥å

̾εȤA4A3ˤʤ鼡Τ褦ˤ롣

psresize -pa3 -Pa4 input.ps output.ps


2ڡˤޤȤ

psnup -2 input.ps output.ps

OK
psեϢ뤷Ȥϡ

gs -q -sDEVICE=pswrite -dNOPAUSE -dBATCH -sOutputFile=output.ps input1.ps input2.ps

psmulti input1.ps input2.ps -o output.ps

ޥɤǤ롣漼ĶǤϸԤ̵äݤ
(10.11.29ɵ)Ԥ̵ʤȤ롣ΤȤϰʲäpsjoinȤץȤ¹Ԥɤpsjoin
ϤϥƥȤʤΤǡŬ˥쥯ȤOK
psեʬ䤷Ȥϡ

psselect page# inputfile outputfile

ʬǤ롣
psselect

bashtcshellŪ(ޤǴޤ)alias

bashǤaliasϰ򰷤äƤʤǥؿȤȤС"aho""ssh aho"ȤaliasȤˤϡ.bashrc

 function aho(){
    ssh aho
 }

ȤФɤʤɤΰѤˤϴ򤷤Ĥ⤷ʤ

nkf

ʸѴޥɡ
nkf-ʸɤѴ-

b  	Хåե󥰽ϤԤ
-u 	ϻ˥Хåե󥰤Ԥʤ
-j 	JISɤѴ
-e 	EUCɤѴ
-s 	եJISɤѴ
-w 	UTF8ɤѴ
-i? 	JISؼ륷󥹤Ȥ ESC-'$'-?Ѥ
-o? 	1ХȱѿʸåȤؼ륷󥹤ȤESC-'('-?Ѥ
-r 	ROT13/47Ѵ
-T 	ƥȡ⡼ɤǽϤ
-l 	0x80-0xfeΥɤISO-8859-1 (Latin-1)ȤưJISɤλ Τͭ
-f? 	?ʸˤʤ褦˴ñԤ
-Z 	X0208αѿȰεASCIIѴ
-J 	JIS(ISO-2022-JP)Ȳꤷƽ
-E 	ܸEUCȲꤷƽ
-S 	եJISȲꤷƽ
-X 	եJISȲꤷƽ롣X0201̾ΤȤ
-B 	줿ESC»JISȲꤷƽ롣-B1ξESC-(ESC-$)ΤȤΥɤʤ-B2ξϲԤθ˶ŪASCII᤹
-x 	̾ԤX0201̾->X0208β̾Ѵʤ
file 	ѴΥեꤹ

lpr

lpr ץ󥿤ǰ

UNIXĶǤϥͥåȥץ󥿤CUPSȸƤФƥѤ롣defaultϤport631

a2ps

a2ps
a2ps̤ΥƥȥեpsեѴ륳ޥɡѥפlprФΤޤްǤ롣ǥեȤǰ褬ץ󥿤ˤʤäƤϤ˽ϤΤǡưŪ˰Ȥ⤢롣
link˥ץΤǡĶǤ

ʸɤEUC򰷤Ȥи漼δĶemacsܸʸϤ񤤤ơȤˤpipeƼΤ褦˵ҤOK!

nkf -e "filename" | a2ps --encoding=euc-jp | lpr -P "printername"


ޤ1ڡǽĹ˽ФȤˤ

-R --columns=1

ץĤФ


źեե: filemogrify2pdf_3 341 [ܺ] filemogrify2pdf_2 388 [ܺ] filemogrify2pdf 407 [ܺ] fileconvlife.sh 370 [ܺ]