01-11-2012
Thanks. I must have the lines on separate lines (the lines are long and are written into an HTML table for readability).
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Need awk help to group and print lines to format the output as shown below
INPUT FORMAT
set echo on
set heading on
set spool on
/* SCHEMA1 */ CREATE TABLE T1;
/* SCHEMA1 */ CREATE TABLE T2;
/* SCHEMA1 */ CREATE TABLE T3;
/* SCHEMA1 */ CREATE TABLE T4;
/* SCHEMA1 */ CREATE TABLE T5;... (5 Replies)
Discussion started by: rajan_san
5 Replies
2. UNIX for Dummies Questions & Answers
I wondered if someone could point out the differences between the time commmand and usr/bin/time and the accuracy one might have over another.
Also, is there a website or two a person could maybe link for me to describe the differences?
Thank you for your time. (2 Replies)
Discussion started by: icedrake
2 Replies
3. Shell Programming and Scripting
Hi,
When I run the diff command using diff -yt file1 file2, I get the output in which original lines are truncated.
I tried using -W switch with diff. However, that does not produce exact output as I want. Is it possible to show entire line of file1 and file2 in diff command's output?
... (8 Replies)
Discussion started by: jal_capri
8 Replies
4. Shell Programming and Scripting
Hi experts,
I'mvery new to shell scripting and learning it now
currently i am having a problem which may look easy to u :)
i have two files
File 1:
Start :Thu Nov 19 10:33:09 2009
ABCDGFSDJ.txt
APDemoNew.ppt
APDemoOutline.doc
ARDemoNew.ppt
ARDemoOutline.doc
File 2:
Start... (10 Replies)
Discussion started by: CelvinSaran
10 Replies
5. Shell Programming and Scripting
Hi,
How can i use AWK or any other commands to find the difference between 2 files.
File A
aaa
bbb
ccc
111
222
File B
aaa
ccc
111
Output
bbb
222 (6 Replies)
Discussion started by: gambit97
6 Replies
6. UNIX for Dummies Questions & Answers
Hello, i would like to find huge files and group them by owners.
To find big files i use this command:
ls -lR | sort -bnr +4 | head -n 75
which give me 75 biggest files, then i need to see in which subdirectory is every file.
second thing i dont know is how to group those files by owner, could... (6 Replies)
Discussion started by: dealer1985
6 Replies
7. UNIX for Dummies Questions & Answers
Hi all!
Having the following two csv files:
file1
AAA;0000;RED
CCC;9900;GREEN
file2
AAA;0000;BLACK
BBB;0099;BLU
What's the correct syntax to hide only the missing rows (BBB,CCC) and show the rows that differ only with last field?
I expect something like this:
diff <options> file1... (2 Replies)
Discussion started by: Evan
2 Replies
8. Red Hat
Hi,
In the following output you can see the the user "richard" is a member on the team/group "developers":
# id richard
uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers)
but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies
9. Shell Programming and Scripting
Not really sure how to accomplish this. If I have two lists with matching columns. Second column is different. I would like to show the differences plus/minus.
list1
device1 5
decive2 10
decive3 10
device4 10
device5 10
device6 20
list2
device1 10
... (1 Reply)
Discussion started by: mrlayance
1 Replies
10. Shell Programming and Scripting
Hi All,
I have one file which contains time for request and response.
I want to calculate time difference in milliseconds for each line.
This file can contain 10K lines.
Sample file with 4 lines.
for first line.
Request Time: 15:23:45,255
Response Time: 15:23:45,258
Time diff... (6 Replies)
Discussion started by: Raza Ali
6 Replies
LEARN ABOUT REDHAT
snmptable
SNMPTABLE(1) Net-SNMP SNMPTABLE(1)
NAME
snmptable - obtain and print an SNMP table
SYNOPSIS
snmptable [COMMON OPTIONS] TABLE-OID
DESCRIPTION
snmptable is an SNMP application that repeatedly uses the SNMP GETNEXT or GETBULK requests to query for information on a network entity.
The parameter TABLE-OID must specify an SNMP table.
OPTIONS
-Cb Display only a brief heading. Any common prefix of the table field names will be deleted.
-CB Do not use GETBULK requests to retrieve data, only GETNEXT.
-Cf STRING
The string STRING is used to separate table columns. With this option, each table entry will be printed in compact form, just with
the string given to separate the columns (useful if you want to import it into a database). Otherwise it is printed in nicely
aligned columns.
-Ch Display only the column headings.
-CH Do not display the column headings.
-Ci This option prepends the index of the entry to all printed lines.
-Cw WIDTH
Specifies the width of the lines when the table is printed. If the lines will be longer, the table will be printed in sections of
at most WIDTH characters.
In addition to these options, snmptable takes the common options described in the snmpcmd(1) manual page.
EXAMPLES
$ snmptable localhost public at.attable
SNMP table: at.atTable
atIfIndex atPhysAddress atNetAddress
1 8:0:20:20:0:ab 130.225.243.33
$ snmptable localhost public -Cf + at.attable
SNMP table: at.atTable
atIfIndex+atPhysAddress+atNetAddress 1+8:0:20:20:0:ab+130.225.243.33
BUGS
The test for TABLE-OID actually specifying a table is rather heuristic. Note also that the test requires the defining MIB file to be
loaded.
SEE ALSO
snmpcmd(1), variables(5).
4th Berkeley Distribution 08 Feb 2002 SNMPTABLE(1)