https://github.com/taskie/rlexec
add readline interface to any commands
https://github.com/taskie/rlexec
Last synced: 6 months ago
JSON representation
add readline interface to any commands
- Host: GitHub
- URL: https://github.com/taskie/rlexec
- Owner: taskie
- License: apache-2.0
- Created: 2019-02-24T16:31:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-01T16:04:08.000Z (over 6 years ago)
- Last Synced: 2025-10-08T08:56:30.780Z (9 months ago)
- Language: Go
- Homepage:
- Size: 3.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rlexec
add readline interface to any commands
## Usage
### Execute some commands
```sh
rlexec cat
rlexec head -n 3
```
### With xargs
```sh
rlexec xargs -i echo 'Hello {} world!'
rlexec xargs -n 1 ls
```
### Use a history file
```sh
rlexec -H history.txt cat
```
### Change the prompt
```sh
rlexec -p '' cat
```
### Read lines and write them to the specified file
```sh
rlexec -o out.txt
```
FIFO special file can be the output file.
```sh
mkfifo fifo
uniq fifo
# and `rlexec -o fifo` in another terminal
```
## License
Apache License 2.0