04-14-2011
please provide input and output examples
10 More Discussions You Might Find Interesting
1. Cybersecurity
Hey,
I currently have a set of captured sessions thru ethereal, saved in pflog files, basically its a tcpdump, which i need to go thru and sort the applications/protocols in order of the times they were used. I also need to change the headers of the packets, basically the source and destination... (0 Replies)
Discussion started by: PenguinDevil
0 Replies
2. Shell Programming and Scripting
Hi,
I have two variables - A and B - containing a bunch of file paths. I am comparing them and when I find a match I want to remove that entry from A so that as the compare proceeds A shrinks entry by entry.
How can I remove a matched entry from A whilst leaving the non matched entries... (6 Replies)
Discussion started by: ajcannon
6 Replies
3. UNIX for Dummies Questions & Answers
Hi my prob statement is to create a new file or to append to the 1tst file the followign chages.
File 1: txt file.
portfolio No a b c d
abc 1 Any Any Any charString
cds 2 values values values charString
efd 3 can can can charString
fdg 4 come come come charString... (4 Replies)
Discussion started by: szchmaltz
4 Replies
4. Emergency UNIX and Linux Support
Hi. I haven't had to write bash scripts in a long time and have a simple task to do, but need some help:
Input:
chrY:22627291-22651542
chrY:23045932-23070172
chrY:23684890-23696359
chrY:25318610-25330083
chrY:25451096-25462570
chr10:1054847-1061799
chr10:1058606-1080131... (7 Replies)
Discussion started by: awknerd
7 Replies
5. Shell Programming and Scripting
Hi guys
Firstly, I'd like to say hi and how great this forum is. I'm not new to UNIX but am relatively new to scripting. I have a personal project that I'm working on just to try and speed up my learning.
I working with a text file, well more of a logfile really. It has several columns of... (6 Replies)
Discussion started by: abcd69
6 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have several text files. One main file contains the detail data, other have some information to extract data from the main file, and some are empty files. Examples are shown below:
The main file look like:
MainFile.txt
>Header1
data1...data1...
>Header2
data2...data2...
...
...... (2 Replies)
Discussion started by: Fahmida
2 Replies
7. Shell Programming and Scripting
I have two CSV files in the following format:
First file:
GroupID, PID:TID, IP, Port
Sample data:
0,1000:11,127.0.0.1,445
0,-1:-1,127.0.0.1,800
1,1000:11,127.0.0.1,445
1,-1:-1,127.0.0.1,900
2,1000:11,127.0.0.1,445
2,-1:-1,180.0.0.3,900
Second file:
IP,Port,PID
Sample data... (6 Replies)
Discussion started by: rakesh_arxmind
6 Replies
8. Programming
I have a list of files, 4 files for example
Then I have two buffers ifa and ifb giving me the file numbers
from which I need to get a group of data. For example, the first
four groups use file 1. The fifth group uses data from file 1 and
file 2.
I am thinking of storing all the data in the... (1 Reply)
Discussion started by: kristinu
1 Replies
9. Shell Programming and Scripting
Dear friends,
I'm struggling to preparing a bunch of gromacs input files, say manually. It's really a time-consuming work without any techniques. I suppose that it could be done by a smart script automatically. But I lack some basic knowledge on scripting. Please help!
My original input looks... (3 Replies)
Discussion started by: liuzhencc
3 Replies
10. Open Source
I have a process that requires me to read data from huge log files and find the most recent entry on a per-user basis. The number of users may fluctuate wildly month to month, so I can't code for it with names or a set number of variables to capture the data, and the files are large so I don't... (7 Replies)
Discussion started by: rbatte1
7 Replies
mosy(8) System Manager's Manual mosy(8)
NAME
mosy - The managed object syntax compiler.
SYNOPSIS
/usr/sbin/mosy [-d] [-i] [-o output_file] [-s] [-1] input_file
OPTIONS
Specifies no duplicate entries in the output file. By default, if duplicate entries exist in the input file, they will also exist in the
output file. Specifies that errors are ignored. This option causes the mosy program to create an output file even if it encounters errors.
The default behavior is that the mosy program generates no output file when errors are encountered. Specifies the file to create for mosy
output. If not specified, the output file is derived from the input file name by replacing the suffix with or appending input_file is not
specified (or is specified as a hyphen (-) for standard input), output goes to standard output.
You can also use a hyphen (-) to specify the output file name, which means output to standard out. Indicates silent mode which
turns off the default behavior of printing out objects names, type names, and identifiers. Specifies that the mosy program will
perform only the first validation pass when compiling. The mosy program prints the input_file contents as it parses, which is useful
when debugging syntax errors.
OPERANDS
Specifies a text file in MIB format describing a set of managed objects. If you do not specify an input_file or specify a hyphen (-), the
program accepts input from standard input.
DESCRIPTION
The mosy program reads a description of an SNMP-managed objects module (extracted from a MIB) and produces a simple ASCII file containing
equivalent definitions. The output file is used by various management applications. In particular, mosy output files are used as input to
the snmpi program when developing extensible SNMP subagents for Tru64 UNIX.
The input_file is typically obtained by cleaning up an RFC file that defines a MIB. (You can use the /usr/examples/esnmp/mib_converter.sh
script to perform this task.)
For a complete description of using mosy and developing subagents refer to the Network Programmer's Guide.
EXAMPLES
Compile the file chess.my with the output going to the file chess.defs. # mosy chess Clean up the MIB defined in RFC1514.txt and compile
it, placing the output in file fred.objects # /usr/examples/esnmp/mib-converter.sh < rfc1514.txt > rfc1514.my # /usr/sbin/mosy -o
fred.objects rfc1514.my
You must copy the /usr/examples/esnmp/mib-converter.sh program to another directory and make it executable in order to perform this
operation.
FILES
SEE ALSO
Commands: snmpd(8), snmpi(8), snmp_request(8)
Network Programmer's Guide
IDENTIFICATION
Marshall T. Rose, Performance Systems International
This work was partially supported by the U.S. Defense Advanced Research Projects Agency and the Rome Air Development Center of the U.S. Air
Force Systems Command under contract number F30602-88-C-0016.
It has been modified for use in Tru64 UNIX extensible SNMP.
mosy(8)