Log In | Not a Member? | Support | |
SYNTAX Position [window1] [window2]… [-c | -l] DESCRIPTION The Position command displays the position of the selected text in one or more windows. The position is normally displayed as both the line number of the start of the selection and the character offsets of the start and end of the selection. In determining the offsets, Position considers the beginning of the file to be 0 and counts each carriage return as an invisible character. INPUT None OUTPUT Standard output. ALIAS RESOLUTION Resolves Finder aliases that are part of a partial or complete pathname substituted for the window name. The resolved pathname must specify the name of an open window. Note that using a Shell variable to designate a window is usually faster than requiring MPW to resolve a Finder alias. STATUS
Position can return the following status codes:
PARAMETERS window1 [window2]… Specifies one or more windows in which the selection can be found. The target window is the default. OPTIONS -c Displays only the character positions of the start and end of the selection. -l Displays only the line number of the start of the selection. EXAMPLES The command line Position "{Target}" file2 displays the position of the selection in both the Target and file2 in the following form:
578 23129,23140 SEE ALSO
|