Skip to main content

Remove trailing white spaces from a text file.

Project description

# 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 を参照してください。


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rm_rspace-0.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rm_rspace-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file rm_rspace-0.0.1.tar.gz.

File metadata

  • Download URL: rm_rspace-0.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rm_rspace-0.0.1.tar.gz
Algorithm Hash digest
SHA256 47aecbe25efe0c39c1fed220e019fd7a81aa449d04b88613be2fe30eba1af7ae
MD5 f119f5627588b8c49692b0135deb09f3
BLAKE2b-256 7316caeb9ef3d0af2ba141f6ee7fdaa9a24e7b5a81426a4a5b9ef0143bf72551

See more details on using hashes here.

File details

Details for the file rm_rspace-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rm_rspace-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for rm_rspace-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 681febbf8e9930ebae30f5c1ea24c52cbb8bfd2836cf8ff2b1ef14793ef1c917
MD5 49dd0f25dd3e30ffdafa24c3482a2041
BLAKE2b-256 d860afb03d6c9f07eae89b8023c7bed06caf6f1e33b3d2fc8e7481b6783dd764

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page