https://github.com/codegoalie/filename-reverser
Dirty go script to reverse the characters in a filename while preserving the extension
https://github.com/codegoalie/filename-reverser
Last synced: 11 months ago
JSON representation
Dirty go script to reverse the characters in a filename while preserving the extension
- Host: GitHub
- URL: https://github.com/codegoalie/filename-reverser
- Owner: codegoalie
- Created: 2014-08-16T20:45:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-16T21:04:20.000Z (over 11 years ago)
- Last Synced: 2025-02-14T05:43:56.359Z (about 1 year ago)
- Language: Go
- Size: 684 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# filename-reverser
`filename-reverser` is a command line utility written in go to reverse the
characters in a filename while preserving the extension.
## Examples
```
$ ls
sirhc.txt
ykeens.eb.ot.yrt.mkv
$ filename-reverser
sirhc.txt => chris.txt
ykeens.eb.ot.yrt.mkv => try.to.be.sneaky.mkv
$ ls
chris.txt
try.to.be.sneaky.mkv
```
You can also specify a path command line argument.
```
$ filename-reverser /path/to/reversed/files
sirhc.txt => chris.txt
ykeens.eb.ot.yrt.mkv => try.to.be.sneaky.mkv
$ ls /path/to/reversed/files
chris.txt
try.to.be.sneaky.mkv
```
`filename-reverser` does not modify the contents of the files, just renames them.