0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

renameコマンド(がうまく使えなかった記録)

Last updated at Posted at 2019-01-23

dockerのubuntu

bash
# uname -a
Linux 638cce8bc295 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 GNU/Linux
# bash --version
GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)

# rename
Usage:
    rename [ -h|-m|-V ] [ -v ] [ -n ] [ -f ] [ -e|-E perlexpr]*|perlexpr
    [ files ]
# rename --version
/usr/bin/rename using File::Rename version 0.20

数字ではじまるファイル名
https://qiita.com/kaizen_nagoya/items/2dde95f6b1af1714ebb4
を変更しようと努力中

# rename 0 p0 0?.py 
File::Rename::rename: no _code in HASH(0x556823dccf48)
 at /usr/bin/rename line 45.
# rename 0 p0 0* 
File::Rename::rename: no _code in HASH(0x55c3d2e69f48)
 at /usr/bin/rename line 45.
# rename 0 p0 0*.py
File::Rename::rename: no _code in HASH(0x5581b6898f48)
 at /usr/bin/rename line 45.

もっと悲しい現象が

# rename 1 p1 1?.py

エラーがでないが、何も変わっていない。

文書履歴(document history)

ver. 0.01 初稿 20190123 午前
ver. 0.02 悲しい現象 20190123 午後

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?