MREF(1) General Commands Manual MREF(1)NAME
mref - make listing and cross reference map of MINIX
SYNOPSIS
mref [-dlmstx] [-p n] [-n] file ...
OPTIONS -d Do not produce definition file (global symbol table)
-l Do not produce listing
-m Multiple references on one line are cited only once
-p Set initial page number to n
-s Suppress line numbering between procedures
-t Generate output for troff
-x Do not produce the cross reference map
-n Number of lines to print per page, default = 50
EXAMPLES
mref *.[hc] # List and cross reference files .h and .c
mref -60 -t *.c # Produce troff input at 60 lines/page
mref -dx -p 100 *.c # Listing only, first page is numbered 100
DESCRIPTION
In default mode, mref produces three output files: a numbered listing of the input files (on standard output), a global symbol table (on
symbol.out), and a cross reference map to the global symbols (on xref.out). A global symbol in this context is one present in a #define,
PUBLIC, PRIVATE, or SYMBOL statement (the latter being introduced to allow users to explicitly declare certain symbols as global). Any of
the three outputs can be suppressed, or alternatively, be made suitable for input to troff for typesetting.
MREF(1)
Check Out this Related Man Page
cxref(1) General Commands Manual cxref(1)Name
cxref - generate C program cross reference
Syntax
cxref [options] files
Description
The command analyzes a collection of C files and attempts to build a cross reference table. The command utilizes a special version of to
include #define'd information in its symbol table. It produces a listing on standard output of all symbols (auto, static, and global) in
each file separately, or with the -c option, in combination. Each symbol contains an asterisk (*) before the declaring reference.
Options-c Prints a combined cross-reference of all input files.
-Dname Defines name to processor, as if by #define. Default value is 1.
-Idir Searches named directory for files whose names do not begin with a backslash (/).
-o file Directs output to named file.
-s Operates silently; does not print input file names.
-t Formats listing for 80-column width.
-Uname Removes any initial definition of name.
-w<num> Width option which formats output no wider than <num> (decimal) columns. This option will default to 80 if <num> is not speci-
fied or is less than 51.
Diagnostics
Error messages usually indicate a problem that will prevent the file from compiling.
Files
/usr/lib/xcpp special version of C-preprocessor.
See Alsocc(1).
cxref(1)
Hello,
I have afile which begins with a few urls on multiple lines and then there is listing of some information on separate lines.
The listing begins with the word Name on a given line followed by teh actual list.
I want to count the number of lines in this file after the line having... (6 Replies)
hi all,
I would like to know , if a file contains say 100 lines, and if i want to locate the 54th line and print the output , how to do it??
for eg , if a file details.txt which contains say 100 entries like
admin ....................
rajes ....................
test ..................... (7 Replies)
Dear All,
Here I need some help. I have a file which has 100 lines and I like to split that file into 5 files each containing 20 lines.
so the wc -l bigfile gives me 100 lines. How I will make 5 small files out of this each containing exactly 20 lines:
thanks. (3 Replies)
I have a file listing IP addresses, 1 per line, such as:
1.2.3.4
3.4.5.6
12.13.14.15
7.8.9.6
I want all of the entries to be on the same line, and quoted, such as:
"1.2.3.4" "3.4.5.6" "12.13.14.15" "7.8.9.6"
I got the quotes on there in vi with ":%s/^/"/g" and "%s/$/"/g" ... is there... (8 Replies)
I am new to the world of UNIX scripting - and would like to make the following script:
I have 100 files numbered 1-100. However - i would like to continue the file list - so that I add another 100 files following on, so that file 101 = 99; file 102 = 98 ; 103 = 97 and so on....
(basically ...... (6 Replies)
Hi
I have a cross reference file which contains 86000 records. The data is old number:new number. There are 100s of files where i need to search for old number and append corresponding new number (preceded by @) to the line containing old number. The files contain millions of records.... (9 Replies)
In a directry there are 100 files are present....
How to append a statement like "Anup Das" in each of the file content, in the first line....
without opening the files.... (2 Replies)
Hello everyone,
I am investigating if there is a straight forward way to ask with a single line command a listing of particular files based on a mask and at the same time have a line after the listing is completed that says how many matches were found.
Something of the sort:
ls -ltr Done* ... (2 Replies)
In the following line The AWK statement parses through a listing for files and outputs the results using the {print} command to the screen. Is there a way to (a) send the output to a file and (b) actually perform a cp cmd to copy the listed files to another directory?
ls | awk -va=$a -vb=$b... (1 Reply)
Hi,
I have a very large file that contains a listing of all files on the system. I need to create a listing from that file of all files that start with the following format: s???_*, whereas the '?' represents characters, so the file name begins with an 's' followed by three other characters and... (4 Replies)
so, every 5 minutes, i monitor some data files based on their line numbers.
so if i checked now and there are 100 lines in the file, i will scan the 100 lines for specific errors.
if i check again 5 minutes later and there are 150 lines in the file, i will monitor the file from line 100 to... (2 Replies)
Greetings!
I have a quick question which must be deferred to those with greater skill than myself :)
In this situation, I wish to create a list of all the files on an entire partition in descending order sorted by date. I tried numerous switches for ls, and found this line to be the closest... (4 Replies)