Skip to content

Commit

Permalink
bugfix and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Sep 12, 2014
1 parent 42ac182 commit e0fdc6c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
brename
===============
=======

Recursively batch rename files and directories by regular expression.

通过正则表达式递归、批量重命名文件和文件夹。

Install
-------

[**Recommanded**] To compile with the newest source code, please use [gobuild - Cross-Platform Go Project Compiler](http://gobuild.io/download/github.com/shenwei356/brename). It's simple and fast!

This package is "go-gettable", just:

go get github.com/shenwei356/brename
go install github.com/shenwei356/brename

Usage
-----
Expand All @@ -34,12 +38,7 @@ Example

brename -s '([ab]+)' -r '$1$1'


Have a Try
----------
You can compile by yourself or just download the executable files immediately.


Copyright (c) 2013, Wei Shen ([email protected])
Copyright (c) 2014, Wei Shen ([email protected])

[MIT License](https://github.com/shenwei356/brename/blob/master/LICENSE)
6 changes: 3 additions & 3 deletions brename.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2013 Wei Shen ([email protected]). All rights reserved.
// Copyright 2014 Wei Shen ([email protected]). All rights reserved.
// Use of this source code is governed by a MIT-license
// that can be found in the LICENSE file.

Expand Down Expand Up @@ -46,9 +46,9 @@ Example:
}

flag.Parse()
if src == "" && repl == "" {
if src == "" || repl == "" {
flag.Usage()
os.Exit(2)
os.Exit(1)
}
}

Expand Down
Binary file removed brename_darwin_386
Binary file not shown.
Binary file removed brename_darwin_amd64
Binary file not shown.
Binary file removed brename_linux_386
Binary file not shown.
Binary file removed brename_linux_amd64
Binary file not shown.
Binary file removed brename_linux_arm
Binary file not shown.
Binary file removed brename_windows_386.exe
Binary file not shown.
Binary file removed brename_windows_amd64.exe
Binary file not shown.

0 comments on commit e0fdc6c

Please sign in to comment.