rr 1.2

rr is a basic command-line utility designed to retain/recall file and directory paths.
rr is a basic command-line utility designed to retain/recall file and directory paths. This is done by treating the filename itself as a unique key to be referenced for future rr program calls. The purpose of this is to assist the user in shorthand typing and/or not having to remember arbitrary full paths.

All retained values are stored in ~/.rr, and are unique to each user. If you are attempting to retain a path that has a filename that has already been retained before, rr will retain the new path over the old path.

SYNOPSIS

rr
rr [/path/to/filename | /path/to/directory/]
rr [filename | directory/]
rr [exec command] [args ...]

Installation:

To install the "rr" command on your system it should be as easy as typing:

./configure && make install


(--prefix and --mandir are the standard supported ./configure options)

OPTIONS

rr
Pass a file or directory value to stdin to be retained or recalled, then verbosely print it to stdout. This does not include the ability to execute commands listed below as it is thought to be a potential security risk.

rr [/path/to/filename | /path/to/directory/]
Retain a file or directory, then verbosely print it to stdout. Note that directories are signified by a trailing slash.

rr [filename | directory/]
Recall a file or directory that has been previously retained, then verbosely print it to stdout. Note that directories are signified by a trailing slash.

rr [exec command] [args ...]
Execute a command using retained files and directories. In this form, retained values are referenced by a // prefix.

EXAMPLE

# Retain the path of the desired file, and verbosely print it out.
rr /etc/httpd/conf/httpd.conf

# Recall the retained value, and verbosely print it out.
rr httpd.conf

# Execute vi on /etc/httpd/conf/httpd.conf. (designated by "//")
rr vi //httpd.conf

# Retain a directory path.
rr /etc/rc.d/init.d/

# Change directory to /etc/rc.d/init.d/
cd `rr init.d/`

# List files matching: /etc/rc.d/init.d/s*
# (the '*' may need to be quoted depending on your shell)
rr ls -l //init.d/s*

last updated on:
October 16th, 2007, 6:05 GMT
price:
FREE!
developed by:
fakehalo
license type:
GPL (GNU General Public License) 
category:
ROOT \ Utilities

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT