MARK

Section: User Commands (1)
Updated: 07 January 1992
Index Return to Main Contents
 

NAME

mark -
Program to keep track of database of directory marks, with each mark representing an aliased directory.
 

SYNOPSIS

mark
[ options ] [ directory mark ]
 

DESCRIPTION

mark is a utility which is used in conjunction with set directory, setd(1) , to allow the user quick access to directory pathnames through marks.

This program, combined with setd allows the user to freely mark directories using a string for quick access.  

INSTALLATION

mark installation is quick and painless. Both an environment variable and a mark alias must be set to store the mark database and set-up mark to refresh the directory marks within the environment. Copying the three lines below for mark is all that is needed.


       setenv MARK_DIR ~/bin
       alias mark 'mark *; source $MARK_DIR/mark_db'
       mark -refresh

In the specific example, $MARK_DIR points to the user's bin area, thus allowing the user to always have a database of marks in a designated area for any number of processes.

The alias of mark simply uses mark to set up the new line in the mark database file, with the source command updating the environment variables used by setd.  

OPTIONS

<cr>
-l<ist>
List directory marks.
Listing of all the marks set and their directory translation.
-rm
[ mark ]
-remove
[ mark ]
Remove mark.
Removes the specified mark from the mark database.
-v<ersion>
Version number.
Outputs the version of mark being run.
-h<elp>
Short help message.
A condensed help message of the options.
-reset
Reset marks.
Truncates the mark database.
-r<efresh>
Refresh marks.
Refreshes the shell with the marks in the database.
 

USAGE

mark can be simply used by changing directory and then setting a mark name by the following


     mark [directory mark]

which can then be used to change directory using setd(1) from then on! To list marks, type mark and press return. Upon logging in, a line is included in your .cshrc to invisibly update the shell with the marks from the mark database. If marks ever become corrupt, a simple refresh should set things straight.  

FILES

$MARK_DIR/mark_db  

SEE ALSO

setd(1), cd(1)  

AUTHOR

Sunil William Savkar
sunil@hal.com
HaL Computer Systems Corporation
December 26, 1991  

VERSION

Currently version 1.7, 1/7/92


 

Index

NAME
SYNOPSIS
DESCRIPTION
INSTALLATION
OPTIONS
USAGE
FILES
SEE ALSO
AUTHOR
VERSION

This document was created by man2html, using the manual pages.
Time: 06:18:42 GMT, December 12, 2024