open.1   [plain text]


.\""Copyright (c) 2001 Apple Computer, Inc. All Rights Reserved.
.Dd March 24, 2001
.Dt OPEN 1  
.Os Mac OS X       
.Sh NAME
.Nm open
.Nd open files and directories
.Sh SYNOPSIS
.Nm
.Op Fl a\ \&application
.Ar
.Pp
.Nm
.Op Fl e
.Ar
.Sh DESCRIPTION
The
.Nm
command opens a file (or a directory), just as if you had double-clicked the file's icon. If no application name is specified, the default application as determined via Finder is used to open the specified files.
.Pp
You can specify one or more file names (or pathnames), which are interpreted relative to the shell or Terminal window's current working directory. For example, the following command would open all Word files in the current working directory:
.Pp
.Bd
open *.doc
.Ed
.Pp
The options are as follows:
.Bl -tag -width -indent
.It Fl a\ \&application
specifies the application to use for opening the file
.It Fl e
causes the file to be opened with /Applications/TextEdit
.El
.Sh HISTORY
First appeared in NextStep.