03-09-2011
Quote:
1) is the device name the first word of the first line?
Yes the device name is the first word.Later device name's entry will be either on 8th or 9th line (depends on Extent)
Quote:
2) Your example - eg d4004 2.0 GB - should be? = eg d4004 1.0 GB
Yes It's d4004 1.0
Actually I want to extract Device Name i.e dxxxx and Its corresponding size like 1.0 GB.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am receving a file from remote site which has EDI information for 830, 862 and 997 and I want to extect the data for 997 using grep's or any other methods.
The data look like this:
ISA~000
0000-0001-1000~997
AK1000~m
000~IEA~M
ISA~000
0000-0001-1000~849
000~IEA~M
ISA~000... (11 Replies)
Discussion started by: isingh786
11 Replies
2. Solaris
Hi people,
I have on problem when execute the command METASTAT...
d60: Soft Partition
Device: d10
State: Errored
Size: 12582912 blocks (6.0 GB)
Someone help me?
Thank you very much (4 Replies)
Discussion started by: denisgomes
4 Replies
3. Shell Programming and Scripting
There is a file which logs all errors and alerts of the database called alert log. I have a requirement as follows:
1. Check the current date and search for the first occurance of the current date in the alert log.
2. As soon as the first occurance is found, copy the subsequent contents... (5 Replies)
Discussion started by: sunpraveen
5 Replies
4. Shell Programming and Scripting
Hi,
can someone help me.
I have some files and search a content in this files. If i have a hit I will print a output:
filename:content
But are more hits in one file: The output is always filename:content
E.G. Seach about "three"
file1 {one, two, three, four, three}
file2... (5 Replies)
Discussion started by: Timmää
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Can I get the simple unix command or script to get the output as mentioned below.
Input Contents:
Processing file: home/j2ee-apps/web-estore/123.txt
File: 123.txt Status: Locally Added
Processing file: home/j2ee-apps/web-estore/META-INF/application.xml
Processing file:... (4 Replies)
Discussion started by: vino_hymi
4 Replies
6. Shell Programming and Scripting
Hello All,
I've written a script to collect all audit logs files; now i want to see only the files from it which contains certain x tablenames. I've stored all the tablenames in a log file and using it through variable in a script (ex:below)
$ more tablenames.log (this is just a samle... (2 Replies)
Discussion started by: suri.tyson
2 Replies
7. Shell Programming and Scripting
Hi All
I have searched the possibility of this options everywhere but am unable to find it in any forum.
I have a tar file inside which there are n number of files and i dont know them. I need to grep a word inside the tar file and need to know in which file the word resides.
> cat a... (2 Replies)
Discussion started by: Whiteboard
2 Replies
8. Shell Programming and Scripting
Hi everyone I've two files..
The contents of file1 are as shown below
4
5
12
13
36
37
45
46
47
The contents of file2 are as shown below
21 hello
13 world (5 Replies)
Discussion started by: abk07
5 Replies
9. Solaris
Dear,
Required an script such that :
If metastat |grep Needs , results in some output then this command to be executed for the same :
opcmsg object=metastat a=OS msg_grp=OpC severity=critical msg_text="Need maintenance for the system $line"
With regards,
Mjoshi (3 Replies)
Discussion started by: mjoshi87
3 Replies
10. UNIX for Dummies Questions & Answers
hi,
I'm trying to grep content from one file in another file.
The file that I'm searching into is large and hence I need to temporarily unzip it first.
gzip -dc ALL.chr2.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz | grep '169997024\|190670539\|128051369' >... (2 Replies)
Discussion started by: janshamsani
2 Replies
DISKTAB(5) File Formats Manual DISKTAB(5)
NAME
disktab - disk description file
SYNOPSIS
#include <disktab.h>
DESCRIPTION
Disktab is a simple date base which describes disk geometries and disk partition characteristics. The format is patterned after the term-
cap(5) terminal data base. Entries in disktab consist of a number of `:' separated fields. The first entry for each disk gives the names
which are known for the disk, separated by `|' characters. The last name given should be a long name fully identifying the disk.
The following list indicates the normal values stored for each disk entry.
Name Type Description
ns num Number of sectors per track
nt num Number of tracks per cylinder
nc num Total number of cylinders on the disk
b0 str Filename of block zero primary bootstrap for device
ba num Block size for partition `a' (bytes)
bd num Block size for partition `d' (bytes)
be num Block size for partition `e' (bytes)
bf num Block size for partition `f' (bytes)
bg num Block size for partition `g' (bytes)
bh num Block size for partition `h' (bytes)
fa num Fragment size for partition `a' (bytes)
fd num Fragment size for partition `d' (bytes)
fe num Fragment size for partition `e' (bytes)
ff num Fragment size for partition `f' (bytes)
fg num Fragment size for partition `g' (bytes)
fh num Fragment size for partition `h' (bytes)
pa num Size of partition `a' in sectors
pb num Size of partition `b' in sectors
pc num Size of partition `c' in sectors
pd num Size of partition `d' in sectors
pe num Size of partition `e' in sectors
pf num Size of partition `f' in sectors
pg num Size of partition `g' in sectors
ph num Size of partition `h' in sectors
se num Sector size in bytes (default 512)
sf bool supports bad144-style bad sector forwarding
so bool partition offsets in sectors
ty str Type of disk (e.g. removable, winchester)
Disktab entries may be automatically generated with the diskpart program.
FILES
/etc/disktab
SEE ALSO
newfs(8), diskpart(8), getdiskbyname(3)
BUGS
This file shouldn't exist, the information should be stored on each disk pack.
4.2 Berkeley Distribution May 17, 1986 DISKTAB(5)