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
- Host: GitHub
- URL: https://github.com/andreax79/remember-command-output
- Owner: andreax79
- License: isc
- Created: 2016-02-14T17:27:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-14T17:36:07.000Z (over 10 years ago)
- Last Synced: 2025-01-09T09:28:44.207Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```