eol.

テキストファイルの終わり(EOL)文字を操作するためのコマンドラインスクリプトとPythonモジュール
今すぐダウンロード

eol. ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • MIT/X Consortium Lic...
  • 価格:
  • FREE
  • 出版社名:
  • Trent Mick
  • 出版社のWebサイト:
  • http://code.google.com/u/trentm/

eol. タグ


eol. 説明

テキストファイルを操作するためのコマンドラインスクリプトとPythonモジュール(EOL)文字 EOLは、テキストfiles.command-lineの例で行末文字を処理するためのコマンドラインスクリプトとPythonモジュールの両方です。**指定されたパスのEOLスタイル**をリストします。$ EOL * .txt foo_cr。 TXT:MACクラシック(CR)FOO_CRLF.TXT:Windows(CRLF)foo_EMPTY.TXT:なしEOLS FOO_LF.TXT:UNIX(LF)foo_mixed.txt:ミックス、PRODOMINATLY UNIX(LF)再帰的に:$ EOL -R / SRC / redis /users/trentm/src/redis/.gitignore:UNIX(lf)/users/trentm/src/redis/betatesting.txt:UNIX(LF)/ユーザー/ TRENTM / SRC / REDIS / BUGS:UNIX(LF)/ユーザー/ TRENTM / SRC / REDIS /コピー:UNIX(LF)... / users/trentm/src/redis/zmalloc.h:UNIX(LF)/users/trentm/src/redis/.git/head:UNIX( lf)/users/trentm/src/redis/.git/config:UNIX(LF)... /ユーザー/ TRENTM / SRC / REDIS /クライアントライブラリ/ ReadMe:UNIX(LF)/ユーザー/ TRENTM / REDIS / Design-Documents / Redis-Cluster:UNIX(lf)/users/trentm/src/redis/doc/appendonlyfilehowto.html:UNIX(lf)/users/trentm/src/redis/doc/authcommand.html:UNIX(LF )... **ファイルを探す**指定されたEOLスタイル:$ EOL -F CRLF -X .svn -r / src / python /users/trentm/src/python/doc/make.bat /users/trentm/src/python/lib/email/test/data/msg_26.txt / users / trentm / src / python / lib / encodings / cp720 .py /users/trentm/src/python/lib/test/decimaltestData/and.Dectest ... /users/trentm/src/python/pc/vs8.0/x64.vsprops / users / trentm / src / python / pcbuild / pcbuild.sln ... **ファイルを特定のEOLスタイルに変換する:$ EOL / SRC / Python / Tools / MSI / Merge.py /ユーザー/ TRENTM / SRC / Python / Tools / MSI / Merge .py:Windows(CRLF)$ EOL -C CR〜/ SRC / Python / Tools / MSI / Merge.py#しかし、誰が本当にCR(AKA Mac Classic、 ' R')EOLSを望んでいます。 # "native"は現在のプラットフォームへのネイティブのエイリアス$ EOL -Cネイティブ〜/ src / python / tools / msi / merge.py変換 `/ユーザー/ trentm / src / python / msi / merge.py 'to lf eols $ EOL / src / python / tools / msi / merge.py /users/trentm/src/python/tools/msi/merge.py:UNIX(LF)モジュールの例:**リスト与えられたパスのEOLスタイル**:>>> glob.glob( "* txt")>>> glob.glob( "* .txt")のパスについては、glob.glob( "* .txt")>>>印刷パス、eol.eol_info_from_path(パス)... foo_cr.txt( ' r'、 ' r')#(、<推奨eols>)foo_crlf.txt( ' r n '、' r n ')foo_empty.txt(none、' n ')#は空の内容foo_lf.txtのネイティブEOL(' n '、' n ')foo_mixed.txt(、' n ')再帰的に:>>> eol.eol_info_from_path_patterns(、Recursive = true):印刷i ...(' /ユーザー/trentm/src/redis/.gitignore '、' n '、' n ')(' /users/trentm/src/redis/betatesting.txt '、' n '、' n ')(' /ユーザー/ TRENTM / SRC / REDIS / BUGS '、' n '、' n ')(' /ユーザー/ TRENTM / SRC / RED '、' n '、' n ')... **ファイルを特定のEOLスタイルに変換する:>>> path = "/ users / trentm / src / python / tools / msi / merge.py ">>> eol.eol_info_from_path(path)( ' r n'、 ' r n')>>> eol.convert_path_eol(パス、" n ")>>> eol.eol_info_from_path(パス)( ' n'、 ' n')要件: ・Python


eol. 関連ソフトウェア