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

https://github.com/andreax79/remember-command-output

Remember the output of a command and execute commands on the lines
https://github.com/andreax79/remember-command-output

Last synced: 8 months ago
JSON representation

Remember the output of a command and execute commands on the lines

Awesome Lists containing this project

README

          

# remember-command-output
Remember the output of a command and execute commands on the lines

Install
-------

```
curl https://raw.githubusercontent.com/andreax79/remember-command-output/master/ro.sh > ~/bin/ro && chmod 0755 !#:3
```

Help
----

```
Usage: ro [-l] COMMAND [arg ...]
ro [-l] RANGE [COMMAND arg ...]

Options:
-l, --lines Output the line number, starting at line 1
RANGE Comma-separated list of line number or ranges

Examples:

Execute the grep command and store the output
ro grep -r test .

Display the output of the last command, adding line numbers
ro -l

Open the files at lines 2-4 and 5 in the output of the last command with vi
ro 2-4,5 vi
```