Hi
I have a text file which has two sets of lines repeating for "n" number of times.Some data is printed between the two lines.I want to retrieve all the data thats there in between those two set of lines.I have the string value of those two set of lines.
To be much more clearer
... (4 Replies)
Hi there, if i had a file that looked like this
my_server1
red
green
blue
yellow
blue
my_server2
blue
blue
yellow
green
blue
my_server3
yellow (9 Replies)
I'm having trouble with extracting certain lines from a file based on whether they have all the required fields.
Original file:
snt:594:Sam N This
bpt:2342:Bob P That
lr:123
wrp:23:Whoever Person
cor:794
Desired output:
snt:594:Sam N This
bpt:2342:Bob P That
wrp:23:Whoever Person
... (3 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Hi everybody,
I'd like to think I've been through the search tool not only on this site, but also on google too, but I haven't been able to find what I was looking for. If I might've missed something on this forum, please slap me in the face with a link that you consider useful for my query :D
... (4 Replies)
Hell,
I want to grep certain word from file and display above 2 lines and after two lines.
Here is the content of sample file.
Mar 14, 2013 12:56:59 AM Agent.Agent SendTo
INFO: Connection to server:7041 - Credential Transmit Successesful
Mar 14, 2013 8:54:21 AM cgent SendTo
WARNING:... (7 Replies)
Hello
I have a file with nearly 90000 lines in x,y,z format but have some lines that I do not need to show. Is there anyway to delete those 3 lines after every 288 lines.
Eg I keep the first 288 lines delete (289, 290 291); keep the next 288 lines after those and so on...
Thanks (6 Replies)
Discussion started by: Madiouma Ndiaye
6 Replies
LEARN ABOUT MOJAVE
devinfo
devinfo(1M) System Administration Commands devinfo(1M)NAME
devinfo - print device specific information
SYNOPSIS
/usr/sbin/devinfo -i device
/usr/sbin/devinfo -p device
DESCRIPTION
The devinfo command is used to print device specific information about disk devices on standard out. The command can only be used by the
superuser.
OPTIONS -i Prints the following device information:
o Device name
o Software version (not supported and prints as 0)
o Drive id number (not supported and prints as 0)
o Device blocks per cylinder
o Device bytes per block
o Number of device partitions with a block size greater than zero
-p Prints the following device partition information:
o Device name
o Device major and minor numbers (in hexadecimal)
o Partition start block
o Number of blocks allocated to the partition
o Partition flag
o Partition tag
This command is used by various other commands to obtain device specific information for the making of file systems and determining parti-
tion information. If the device cannot be opened, an error message is reported.
OPERANDS
device Device name.
EXIT STATUS
0 Successful operation.
2 Operation failed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO prtvtoc(1M), attributes(5)SunOS 5.10 8 May 1997 devinfo(1M)