NM(1) General Commands Manual NM(1)NAME
nm - print name list
SYNOPSIS
nm [-dgnopru] [file] ...
OPTIONS -d Print the offsets in decimal instead of in hex
-g Print only external symbols
-n Sort numerically rather than alphabetically
-o Prepend file name to each line rather than only once
-p Do not sort, print in symbol-table order
-r Sort in reverse order
-u Print only undefined symbols
EXAMPLES
nm -n a.out # Print all symbols in numerical order
nm -dg a.out # Print globals alphabetically in decimal
DESCRIPTION
Nm prints the symbol table of executable files when it is available. If no file is given, the symbols in a.out are used. The format of
the table is somewhat compatible with the one produced by asld when used with the -s option. The symbol table can be added with ast.
Assembly language files do not have symbol tables.
SEE ALSO anm(1), asize(1), ar(1), size(1).
NM(1)
Check Out this Related Man Page
NM(1) General Commands Manual NM(1)NAME
nm - print name list (2BSD)
SYNOPSIS
nm [ -gnopru ] [ file ... ]
DESCRIPTION
Nm prints the name list (symbol table) of each object file in the argument list. If an argument is an archive, a listing for each object
file in the archive will be produced. If no file is given, the symbols in "a.out" are listed.
Each symbol name is preceded by its value (blanks if undefined) and one of the letters U (undefined), A (absolute), T (text segment sym-
bol), D (data segment symbol), B (bss segment symbol), C (common symbol), or f file name. If the symbol is local (non-external) the type
letter is in lower case. If the file is an overlaid executable, the overlay number is printed after the name. The number is printed if
the symbol is in an overlay or if it is the entry point (in the base segment) for a subroutine in an overlay. The output is sorted alpha-
betically.
Options are:
-g Print only global (external) symbols.
-n Sort numerically rather than alphabetically.
-o Prepend file or archive element name to each output line rather than only once.
-p Don't sort; print in symbol-table order.
-r Sort in reverse order.
-u Print only undefined symbols.
SEE ALSO ar(1), ar(5), a.out(5), stab(5)3rd Berkeley Distribution April 29, 1985 NM(1)
I have a list of people in a usage log and need to print the names and phone numbers of people with over 500 logins. I'd also like to display these names alphabetically.
I have their total logins set to a variable named total.
So far, I have very little in my awk script to do this:
FS=":"... (4 Replies)
The symbols are \t and \t\t (note: not tab)
If the line starts with \t merge them into a single line upto symbol \t\t
\t\t to end and start new line
I able to join in a single line but not ending at \t\t and I completely confused
help would be appreciated:b::D
Input
\ta tab XXXXXXXXXX
\te... (5 Replies)
Hi All,
In a given directory, I need to list the files present in it in the below given format as a table.
File name Permission Number of Bytes File Type
Telecom1 --w-r-x 1230 Directory
Telecom2 ---x---x---x 450 Device file
Telecom3 ... (7 Replies)
Please Help Me! about the problem down under.
I have 2 files with nearly the same characteristics, I have to convert one to the other format or the other format to one's format. I want to write it with awk.
The first file contain lines like this:
300000001#A#Y#Y#Y#Y
The other file contain... (4 Replies)
Hello,
I'm sure this is an easy one but I've tried loads of sort options and none of them work. I'm trying to sort a file by alpha-numerical order but it's not working. My file is:
SN023x
SN047x
SN085x
SN124x
SN178x
SN480x
SN1004x
After I sort it the highest number server (1004) is in... (4 Replies)
Hi,
How do I print a line with symbols in a file?
Exp:
If I want to print line: Hi "Lisa;John"
Command:
print FILE "Hi "Lisa;John""; - will give me error Bareword found where operator expected...
Can someone advise how can I print any line consiting symbols like example above. Thanks... (3 Replies)
Greetings - I'm not necessarily new to bash scripting - I'm probably between beginner and intermediate, but I have something that I just cannot figure out after many attempts to find it. I have a file that is merely a list of many files, with their respective paths, and a branch path (ClearCase)... (5 Replies)
I have a C code which i am trying to compile using gcc. When i am trying to compile it i get the error undefined symbol error though i am providing the -l*** option where *** refers to the module where the object files for those symbols are present.
Can someone help me on the same. (4 Replies)
I have TXT files to process but they contain the degree symbols in them due to which the processing program fails on these files. I want a unix command that will remove the degree symbols from these files.
I tried using the sed command: sed 's///g' filename but it did not work. This issue... (14 Replies)
Hi.
I'm trying to sort a list of items in a file alphabetically but starting from the letter 'X'. For instance if I had the following file;
test.txt
Z
A
T
W
Y
B
S
X
I would like the output to look like;
X
Y (8 Replies)
I would like produce
blue, green, red, yellowfrom"blue:,*green:,*red:,*yellowI can remove the colon with
echo "blue:,*green:,*red:,*yellow" | sed 's/://g'which givesblue,*green,*red,*yellowbut when I try
echo "blue:,*green:,*red:,*yellow" | sed 's/://g'; 's/*//g'I get bash: s/*//g: No such... (9 Replies)