LORDER(1) General Commands Manual LORDER(1)NAME
lorder - find ordering relation for an object library
SYNOPSIS
lorder file ...
DESCRIPTION
The input is one or more object or library archive (see ar(1)) files. The standard output is a list of pairs of object file names, meaning
that the first file of the pair refers to external identifiers defined in the second. The output may be processed by tsort(1) to find an
ordering of a library suitable for one-pass access by ld(1).
This brash one-liner intends to build a new library from existing `.o' files.
ar cr library `lorder *.o | tsort`
FILES
*symref, *symdef
nm(1), sed(1), sort(1), join(1)SEE ALSO tsort(1), ld(1), ar(1)BUGS
The names of object files, in and out of libraries, must end with `.o'; nonsense results otherwise.
LORDER(1)
Check Out this Related Man Page
lorder(1) User Commands lorder(1)NAME
lorder - find ordering relation for an object or library archive
SYNOPSIS
lorder filename...
DESCRIPTION
The input is one or more object or library archive filenames (see ar(1)). The standard output is a list of pairs of object file or archive
member names; the first file of the pair refers to external identifiers defined in the second. The output may be processed by tsort(1) to
find an ordering of a library suitable for one-pass access by ld. Note that the link editor ld is capable of multiple passes over an ar-
chive in the portable archive format (see ar.h(3HEAD)) and does not require that lorder be used when building an archive. The usage of
the lorder command may, however, allow for a more efficient access of the archive during the link edit process.
The following example builds a new library from existing .o files.
ar -cr library `lorder *.o | tsort`
FILES
TMPDIR/*symref temporary files
TMPDIR/*symdef temporary files
TMPDIR usually /var/tmp but can be redefined by setting the environment variable TMPDIR (see tempnam() in tmpnam(3C))
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbtool |
+-----------------------------+-----------------------------+
SEE ALSO ar(1), ld(1), tsort(1), tmpnam(3C), ar.h(3HEAD), attributes(5)NOTES
lorder will accept as input any object or archive file, regardless of its suffix, provided there is more than one input file. If there is
but a single input file, its suffix must be .o.
The length of the filename for TMPDIR is limited to whatever sed allows.
SunOS 5.11 29 Oct 1991 lorder(1)
Hi--
Ok. I have now found that:
find -x -ls
will do what I need as far as finding all files on a particular volume. Now I need to sort the results by the file's modification date/time.
Is there a way to do that?
Also, I notice that for many files, whereas the man for find says ls is... (8 Replies)
Hi,
I recieve some XML-files that constantly has bad encoded content. There are Ampersands that are not encoded correctly causing my XML-parser to halt.
I wrote a sed one-liner to fix any stand alone "&":
sed -e 's/&/&/gi' input.xml
testfile for input:
<xml>
<source> " One " </source>... (8 Replies)
Hi,
I'm looking to combine the two commands find and sed together for the work that i'm worknig on.
I need to find the ip addresse in any file from current directory and below, once is found i need to replace it with new ip addresse. Here is what i have but not complete.
Find IP from... (4 Replies)
What is the best way to find the largest files in a directory? I used du -k|sort -rn |less.
I got a results for this. But if I used the following command , I got another result...a different order in the same directory. Why is that?
ls -la |awk '{print $5," ",$9}' sort -rn|less. I saw that... (6 Replies)
With an input file like this:
How can I get an output like this?
(In the quoted examples, the "_" sign represents an empty space)
Note that there are some minus signs and no spaces, in the example above the first character of the first line is an empty space, so each number spans 10... (16 Replies)
I have lot of files whose names are something like the following. I want to change the name of all the files from 'npt02' to 'n02'.
npt02-z30-sr65-rgdt0p50-dc0p01-16x12drw.tpf
npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw.back
npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw-bst-mis.xy... (5 Replies)
Hi folks,
What command/commands I have to run to find the files including their folder/subfolder which contain word-a, word-b etc.
e.g. I expect to find the names of the files including their folders which contain "domain", "subdomain/sub domain", "free domain". etc.
TIA
B.R.
satimis (11 Replies)
I was trying to do some experiment with "sed".
I want to find the filenames which are three characters. So, this is what I have done to search for it, using sed.
sed -n -e '/^\{3\}$/p' test
This returns the correct output for characters. But if I make change, let's say i create 2 more... (4 Replies)
Hi,
I have a problem with a shell script.
The script should find all .cpp and .h files and list them.
With:
for file in `find $src -name '*.h' -o -name '*.cpp'
it gives out this:
H:\FileList\A\E\F\G\newCppFile.cpp
H:\FileList\header01.h
H:\FileList\B\nextCppFile.cpp
... (4 Replies)
how can i make find/sed to include directory names with spaces
the command is like this
for i in `find wp-content/themes -type f -print0 | xargs -0 grep -l
-iE 'e'`;do sed -i -e 's/word1/word2/gI' "$i";done
but it skips one directory names with spaces
sed: can't read ./Nova: No such... (5 Replies)
I use the following as an example. I find myself always doing this and I believe my scripts would run much faster if I put the sed results into a place in memory rather than writing to files. Again, its not about sed, its about redirecting to a place in memory rather than an external file.
... (5 Replies)
All,
I am looking for a way to improve this small one liner.
one of the files has this kind of format
public func <<<T>(array: , offset: Int) -> { return array.shiftedLeft(by: offset) }
gsed -i '/public func/i /\/\/\public func \n/\/\==mark==public func' tresults in
///public func ... (5 Replies)
I all
I am tryng to find a way to sort a list of number in a file by the value of last two digit.
i have a list like this
313202320388
333202171199
373202164587
393202143736
323202132208
353201918107
343201887399
363201810249
333201805043
353201791691 (7 Replies)