Skip to main content
# rm_rspace #
テキストファイルから末尾空白を取り除きます。

![example](https://user-images.githubusercontent.com/42906988/49338917-94506e00-f66c-11e8-85d1-b67351bd3e96.png)

## 対応バージョン ##
以下のバージョンで動作を確認しました。
- Python2.7
- Python3+

## インストール ##
```
pip install rm_space
```

## 使い方 ##
```
rm_rspace [-d] [-c] [-e ENCODING] FILE [NEWFILE]
```
FILE に末尾空白を取り除きたいテキストファイルを指定します。元のファイルを変更したくない場合は、NEWFILE に新しい保存先を指定してください。

### オプション ###
|オプション|説明|
|:-------:|:----:|
| -h, --help |ヘルプメッセージを表示して終了|
| -d, --display |末尾空白があった行とその行番号を表示|
| -c, --count |末尾空白を取り除いた行の数を表示|
| -e ENCODING, <br> --encoding ENCODING |指定したエンコーディングでファイルを開く <br> 省略した場合は UTF-8 で開く|

### 使用例 ###
```
$ rm_rspace -dc import.py
1 import os**
3 import random*
5 ***

3 行の末尾空白を取り除きました
```

## ライセンス ##
コードは MIT ライセンスのもとに公開しています。詳細は LICENSE.txt を参照してください。


Release files for rm-rspace 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rm-rspace 0.0.1
File Size Uploaded
rm_rspace-0.0.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rm-rspace 0.0.1
File Interpreter ABI Platform
rm_rspace-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / rm_rspace-0.0.1.tar.gz

Download URL rm_rspace-0.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47aecbe25efe0c39c1fed220e019fd7a81aa449d04b88613be2fe30eba1af7ae
BLAKE2b-256 checksum
How to use checksums
7316caeb9ef3d0af2ba141f6ee7fdaa9a24e7b5a81426a4a5b9ef0143bf72551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

Release files / rm_rspace-0.0.1-py3-none-any.whl

Download URL rm_rspace-0.0.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
681febbf8e9930ebae30f5c1ea24c52cbb8bfd2836cf8ff2b1ef14793ef1c917
BLAKE2b-256 checksum
How to use checksums
d860afb03d6c9f07eae89b8023c7bed06caf6f1e33b3d2fc8e7481b6783dd764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page