09-19-2009
what is the criteria behind grouping???
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to grep a range of numbers in a log file. My log file looks like this:
20050807070609Z;blah blah
That is a combination of yr,month,date,hours,minutes,seconds.
I want to search in the log file events that happened between a particular time.
like between 20050807070000 to 20050822070000... (1 Reply)
Discussion started by: azmathshaikh
1 Replies
2. UNIX for Dummies Questions & Answers
Hi im new to unix and need to find a way to grep the top 5 numbers in a file and put them into another file. For example my file looks like this
abcdef 50000
abcdef 45000
abcdef 40000
abcdef 35000
abcdef 30000
abcdef 25000
abcdef 20000
abcdef 15000
abcdef 10000
and so on...
How can... (1 Reply)
Discussion started by: ProgChick2oo9
1 Replies
3. Shell Programming and Scripting
Howdy experts,
We have some ranges of number which belongs to particual group as below.
GroupNo StartRange EndRange
Group0125 935300 935399
Group2006 935400 935476
937430 937459
Group0324 935477 935549
... (6 Replies)
Discussion started by: thepurple
6 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a column where there are values from 1 to 150.
I want to get the frequency of values in the following ranges:
1-5
6-10
11-15
....
....
....
146-150
How can I do this in a for loop?
Thanks,
Guss (1 Reply)
Discussion started by: Gussifinknottle
1 Replies
5. UNIX for Dummies Questions & Answers
Hi I have a data file with two columns which looks like:
1 42
2 40
3 55
4 50
5 38
6 49
7 33
8 46
9 39
10 33
11 33
12 26
13 46
14 44
15 55
16 54
17 30
18 32 (7 Replies)
Discussion started by: marhuu
7 Replies
6. Shell Programming and Scripting
Dear Friends,
I want to know how to grep for the lines that has a number between given range(start and end).
I have tried the following sed command.
sed -n -e '/20030101011442/,/20030101035519/p'
However this requires both start and end to be part of the content being grepped. However... (4 Replies)
Discussion started by: tamil.pamaran
4 Replies
7. UNIX for Dummies Questions & Answers
I am trying to extract specific information from a large *.sam file (it's originally 28Gb).
I want to extract all lines that are on chr3 somewhere in the range of 112,937,439-113,437,438.
Here is a sample line from my file so you can get a feel for what each line looks like:
seq.4 0 ... (8 Replies)
Discussion started by: genGirl23
8 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to match a filename that could be called anything from vout001 to vout252 and was trying to do a small test but I'm not getting the result I thought I would..
Can some one tell me what I'm doing wrong?
*****@********>echo $mynumber ... (4 Replies)
Discussion started by: Jazmania
4 Replies
9. Shell Programming and Scripting
Hi
I am getting an argument which specifies the range of numbers. eg: 7-15
Is there a way that i can easily (avoiding loop) print the range of number between and including the specified above.
The above example should translate to 7,8,9,10,11,12,13,14,15 (3 Replies)
Discussion started by: tostay2003
3 Replies
10. Shell Programming and Scripting
Hi,
I'd like to take a list of numbers (with a prefix) and convert to a range, for example:
cn001
cn004
cn016
cn017
cn018
cn019
cn020
cn021
cn031
cn032
cn038
cn042
cn043
cn044
cn045 (5 Replies)
Discussion started by: chrissycc
5 Replies
getdev(1M) System Administration Commands getdev(1M)
NAME
getdev - lists devices based on criteria
SYNOPSIS
getdev [-ae] [criteria...] [device...]
DESCRIPTION
getdev generates a list of devices that match certain criteria. The criteria includes a list of attributes (given in expressions) and a
list of devices. If no criteria are given, all devices are included in the list.
Devices must satisfy at least one of the criteria in the list unless the -a option is used. Then, only those devices which match all of
the criteria in a list will be included.
Devices which are defined on the command line and which match the criteria are included in the generated list. However, if the -e option is
used, the list becomes a set of devices to be excluded from the list. See OPTIONS and OPERANDS.
OPTIONS
The following options are supported:
-a Specifies that a device must match all criteria to be included in the list generated by this command. The option has no effect if
no criteria are defined.
-e Specifies that the list of devices which follows on the command line should be excluded from the list generated by this command.
Without the -e the named devices are included in the generated list. The flag has no effect if no devices are defined.
OPERANDS
The following operands are supported:
criteria Defines the criteria that a device must match to be included in the generated list. criteria is specified by expressions.
There are four possible expression types which the criteria specified in the criteria argument may follow:
attribute=value Selects all devices whose attribute attribute is defined and is equal to value.
attribute!=value Selects all devices whose attribute attribute is defined and does not equal value.
attribute:* Selects all devices which have the attribute attribute defined.
attribute!:* Selects all devices which do not have the attribute attribute defined.
See the putdev(1M) manual page for a complete listing and description of available attributes.
device Defines the devices which should be included in the generated list. This can be the pathname of the device or the device
alias.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
1 Command syntax was incorrect, invalid option was used, or an internal error occurred.
2 Device table could not be opened for reading.
FILES
/etc/device.tab
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
devattr(1M), getdgrp(1M), putdev(1M), putdgrp(1M), attributes(5)
SunOS 5.10 5 Jul 1990 getdev(1M)