GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LS (n)

.ds Aq ’

NAME

ls - The command with no object argument lists the name of every object in the database (in alphabetical order) except for those marked as hidden with the hide command. If the object argument is supplied, only those objects are listed.

CONTENTS

SYNOPSIS

ls [-A -o -a -c -r -s -p -l -q] [objects]

DESCRIPTION

The command with no object argument lists the name of every object in the database (in alphabetical order) except for those marked as hidden with the hide command. If the object argument is supplied, only those objects are listed. The object argument may include regular expressions. If the -A option is used, then the arguments are expected to be a list of attribute name/value pairs, and objects having attributes that match the provided list are listed. By default, an object must match all the specified attributes in order to be listed; however, the -o flag indicates that an object matching at least one attribute name/value pair should be listed. See the attr command for information on how to set or get attributes. Regular expressions are not supported for attributes. The following options are also allowed:

o

o a -- List all objects in the database.

o

o c -- List all non-hidden combinations in the database.

o

o r -- List all non-hidden regions in the database.

o

o s -- List all non-hidden primitives in the database.

o

o p -- List all non-hidden primitives in the database.

o

o l -- Use long format showing object name, object type, major type, minor type, and length.

o

o q -- Suppress informational output messages during database lookup process

The ls command is a synonym for the t command. Note that when any of the above options are used, the output is not formatted.

EXAMPLES

The examples show the use of the ls command and its options to list objects, primitives, regions, or combinations having a specific object.

Example 1. List all objects beginning with a particular name.

mged> ls shape*

Lists all objects with names beginning with "shape" (output is formatted).

Example 2. List all objects beginning with a particular name.

mged>ls -a shape*

Lists all objects with names beginning with "shape."

Example 3. List all primitives beginning with a particular name.

mged>ls -p wheel*

Lists all primitives with names beginning with "wheel."

Example 4. List all regions beginning with a particular name.

mged>ls -r wheel*

Lists all regions with names beginning with "wheel."

Example 5. List all combinations beginning with a particular name.

mged>ls -c suspension*

Lists all combinations with names beginning with "suspension."

Example 6. List all regions having particular attributes.

mged>ls -A -o -r Comment{First comment} Comment{Second comment}

Lists all regions that have a "Comment" attribute that is set to either "First comment" or "Second comment."

AUTHOR

BRL-CAD Team

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to <devs@brlcad.org>, or via the "cadbug.sh" script.

Search for    or go to Top of page |  Section n |  Main Index


BRL-CAD LS (nged) 04/04/2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.