An open API service indexing awesome lists of open source software.

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

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