SakamonWeb
New
Tools
Index
Edit
Unix/vi
!!!行番号を(非)表示 set number set nonumber !!!編集操作 !!検索 <pre> [/]: 検索開始 ------------------------------------- [n]: 前検索 [N]: 後検索 </pre> !!置換 <pre> [:]: コマンドモード [s/対象文字列/変換後文字列/]: 対象文字列を変換文字列へ置換 [%s/対象文字列/変換後文字列/g]: 文書全体について置換 [%s/対象文字列/変換後文字列/gc]: +対象毎に確認付き </pre> !!バイナリファイル編集 xxd コマンドと連携して編集可能 ・作成 <pre> > vi sample.txt 0000 61 62 63 64 > xxd -r sample.txt > sample.bin > cat sample.bin abcd </pre> ・編集 <pre> > xxd sample.bin > sample.txt > vi sample.txt .... > xxd -r sample.txt > sample.bin </pre>
Sign:
freeze
sage
Attachment
New:
Sign:
Rename
Title:
Sign: