-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42ac182
commit e0fdc6c
Showing
9 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
----- | ||
|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
@@ -46,9 +46,9 @@ Example: | |
} | ||
|
||
flag.Parse() | ||
if src == "" && repl == "" { | ||
if src == "" || repl == "" { | ||
flag.Usage() | ||
os.Exit(2) | ||
os.Exit(1) | ||
} | ||
} | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.