Red Hat ENTERPRISE LINUX 4 - USING BINUTILS Bedienungsanleitung Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 80
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
Chapter 2. ar 7
comments are allowed; text after either of the characters * or ; is ignored.
Whenever you use a list of names as part of the argument to an ar command, you can separate the
individual names with either commas or blanks. Commas are shown in the explanations below, for
clarity.
+ is used as a line continuation character; if + appears at the end of a line, the text on the following
line is considered part of the current command.
Here are the commands you can use in ar scripts, or when using ar interactively. Three of them have
special significance:
OPEN or CREATE specify a current archive, which is a temporary file required for most of the other
commands.
SAVE commits the changes so far specified by the script. Prior to SAVE, commands affect only the
temporary copy of the current archive.
ADDLIB archive
ADDLIB archive (module, module, ... module)
Add all the contents of archive (or, if specified, each named module from archive) to the
current archive.
Requires prior use of OPEN or CREATE.
ADDMOD member, member, ... member
Add each named member as a module in the current archive.
Requires prior use of OPEN or CREATE.
CLEAR
Discard the contents of the current archive, canceling the effect of any operations since the last
SAVE. May be executed (with no effect) even if no current archive is specified.
CREATE archive
Creates an archive, and makes it the current archive (required for many other commands). The
new archive is created with a temporary name; it is not actually saved as archive until you
use SAVE. You can overwrite existing archives; similarly, the contents of any existing file named
archive will not be destroyed until SAVE.
DELETE module, module, ... module
Delete each listed module from the current archive; equivalent to ar -d archive module ...
module.
Requires prior use of OPEN or CREATE.
DIRECTORY archive (module, ... module)
DIRECTORY archive (module, ... module) outputfile
List each named module present in archive. The separate command VERBOSE specifies the
form of the output: when verbose output is off, output is like that of ar -t archive module....
When verbose output is on, the listing is like ar -tv archive module....
Output normally goes to the standard output stream; however, if you specify outputfile as a
final argument, ar directs the output to that file.
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 79 80

Kommentare zu diesen Handbüchern

Keine Kommentare