Skip to content

Instantly share code, notes, and snippets.

@wbcyclist
Last active August 29, 2015 14:16
Show Gist options
  • Save wbcyclist/c5819d96e5ad88f88e5c to your computer and use it in GitHub Desktop.
Save wbcyclist/c5819d96e5ad88f88e5c to your computer and use it in GitHub Desktop.

Revisions

  1. wbcyclist revised this gist May 7, 2015. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions shell 批量重命名
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    将Game.Of.Thrones.S01.E01.BluRay.720p.mkv批量增加播放日期在BluRay前
    如:mv Game.Of.Thrones.S01.E01.BluRay.720p.mkv Game.Of.Thrones.S01.E01.2011.BluRay.720p.mkv
    # 将Game.Of.Thrones.S01.E01.BluRay.720p.mkv批量增加播放日期在BluRay前
    # 如:mv Game.Of.Thrones.S01.E01.BluRay.720p.mkv Game.Of.Thrones.S01.E01.2011.BluRay.720p.mkv

    批量命令行打印:ls Game.Of.Thrones.S01* | awk -F "BluRay" '{print "mv\t" $0 "\t" $1"2011.BluRay"$2}'
    # 批量命令行打印
    ls Game.Of.Thrones.S01* | awk -F "BluRay" '{print "mv\t" $0 "\t" $1"2011.BluRay"$2}'

    执行:ls Game.Of.Thrones.S01* | awk -F "BluRay" '{print "mv\t" $0 "\t" $1"2011.BluRay"$2}'|sh
    #执行:
    ls Game.Of.Thrones.S01* | awk -F "BluRay" '{print "mv\t" $0 "\t" $1"2011.BluRay"$2}'|sh
  2. wbcyclist revised this gist May 7, 2015. No changes.
  3. wbcyclist renamed this gist May 7, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. wbcyclist created this gist Mar 3, 2015.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    将Game.Of.Thrones.S01.E01.BluRay.720p.mkv批量增加播放日期在BluRay前
    如:mv Game.Of.Thrones.S01.E01.BluRay.720p.mkv Game.Of.Thrones.S01.E01.2011.BluRay.720p.mkv

    批量命令行打印:ls Game.Of.Thrones.S01* | awk -F "BluRay" '{print "mv\t" $0 "\t" $1"2011.BluRay"$2}'

    执行:ls Game.Of.Thrones.S01* | awk -F "BluRay" '{print "mv\t" $0 "\t" $1"2011.BluRay"$2}'|sh