大きなテキストを行数で分割する
この記事のポイント
- ファイルを選ぶ
- 「分割する」と「行数」を選ぶ
- ZIPを保存する
テキストファイルを結合・分割する では、行の途中で切れることはありません。
手順
- 分けたいファイルを選ぶ
- 「分割する」を選び、「行数」と1ファイルの行数を入れる
- 「実行して保存」を押し、ZIPを開く
ZIPの中に、番号つきのファイルができます。
テキストファイルを結合・分割するを使う(無料)
あわせて使えるツール
- 文章の改行を消す・整える:PDFなどからコピーした文章の改行を整えます。
- 文字コードを変換する(文字化けを直す):Shift_JIS・UTF-8・EUC-JPなどの文字コードを変換し、文字化けを直します。
- CSVを結合・分割・列抜き出し:CSVの結合・行数での分割・列の取り出しをします。
同じツールの、ほかの解説
Splitting a Large Text File by Lines
Key points
- Choose the file
- Choose "Split" and "Number of lines"
- Save the ZIP
Merge and Split Text Files never cuts in the middle of a line.
Steps
- Choose the file to split
- Choose "Split", then "Number of lines" and the lines per file
- Tap "Run and save" and open the ZIP
The ZIP holds numbered files.
Use "Merge and Split Text Files" (free)
Tools that go well with this
- Remove and Tidy Line Breaks in Text: Tidy line breaks in text copied from PDFs and elsewhere.
- Convert Text Encoding (Fix Garbled Text): Convert text files between Shift_JIS, UTF-8, EUC-JP and more to fix garbled text.
- Merge, Split and Pick Columns from CSV: Merge CSV files, split by rows, or keep only chosen columns.