Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goggle/listrars
List all the rar files in a directory, but only list the first part in case of multi part rar files.
https://github.com/goggle/listrars
command-line-tool list-files rar
Last synced: 1 day ago
JSON representation
List all the rar files in a directory, but only list the first part in case of multi part rar files.
- Host: GitHub
- URL: https://github.com/goggle/listrars
- Owner: goggle
- License: mit
- Created: 2017-03-14T12:17:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T11:28:22.000Z (almost 8 years ago)
- Last Synced: 2024-06-20T15:47:46.028Z (6 months ago)
- Topics: command-line-tool, list-files, rar
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Listrars
========Listrars lists the rar files in a given directory, but only shows the first part in case of multipart rar files.
Usage
-----```
Usage:
listrars [PATH]Options:
-h --help Show this screen.
--version Show version.
```Example
-------
Let the directory `/home/user/rfiles` contain the following files:
```
hello_world.c
photos_paris_2017.rar
big_data.part001.rar
big_data.part002.rar
big_data.part003.rar
big_data.part004.rar
```
By running `listrars` in this directory or `listrars /home/user/rfiles` in an arbitrary directory, we get this output:
```
big_data.part001.rar
photos_paris_2017.rar
```
This can now be used to extract all the rar files in `/home/user/rfiles` by using `xargs` and `unrar`:
```
listrars | xargs -I{} unrar e {}
```