Guys
Im checking some of my files for errors. I want to be able to find text and make sure it's located on the right place.
Example
Chapter 1
TEXT LKJ
TEXT 12Y
more and more text
Chapter 2
TEXT 34G
TEXT HHG
more and more text
Chapter 3
TEXT FG45
TEXT 11w
more and more text
... (3 Replies)
Hi,
I have a file
/db01/dat/march 2006/7001DW06.03B
Please note, between "march 2006" there is a space/tab.
While running the following script, it identifies
/db01/dat/march ----> as first file
2006/7001DW06.03B ---> as second file.
SRC_PATH = /db01/dat
SEARCH_FILENAME =... (12 Replies)
Hi
At the moment I am able to add text to a file but what I need to do is make sure the same value is not duplicated.
Can anyone tell me how to search a file and prevent an update from taking place if the value to be entered already exists in the file?
Any help would be greatly... (4 Replies)
Hi,
I would like to do a search and replace on a file using vi.
Something like this:
:%s/dst_port=****//g
I want to search the entire file and replace all text that does not match dst_port=**** with space or nothing. In other words delete everything except for dst_port=****. The four *... (1 Reply)
Hi! i'm trying to do a script (i'm not an expert, as you will see...:o) to search files in a directory (and its subdirectories). I'd like to have something like this:
mysearch -a arg1 -b arg2 -c arg3 ecc...
I'd like to be able to search for files in different ways: for example, with
my... (1 Reply)
Hi, I have the following command to list files beginning with a specific name and containing some text...
find . -type f -name "dm_merge_domain_adm*" -exec grep -il "Error Message:" '{}' \; -print|xargs ls -ltr
It works fine, but seems to list two of each file, when they only exist once...any... (1 Reply)
I am making a script but having little problem. at one part I need to find one number format or other format from a file..
those formats are xxx-xx-xxxx or xxxxxxxxx
i tried
grep '( \{3\}-\{2\}-\{3\} |\{9\})'
if i do them sepratly it work but like this it is not working
Please check... (7 Replies)
Hi guys,
I have a very common issue :( im trying to work it out but I am still not used to it. my problem is searching. very often I should look for piece of string in a text file or a file itself:
I want to learn some easy and professional commands to ease this routine for me. I want to be... (2 Replies)
without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies
LEARN ABOUT OPENSOLARIS
ses
ses(7D) Devices ses(7D)NAME
ses - SCSI enclosure services device driver
SYNOPSIS
ses@target,lun
DESCRIPTION
The ses device driver is an interface to SCSI enclosure services devices. These devices sense and monitor the physical conditions in an
enclosure as well as allow access to the status reporting and configuration features of the enclosure (such as indicator LEDs on the enclo-
sure.)
ioctl(9E) calls may be issued to ses to determine the state of the enclosure and to set parameters on the enclosure services device.
No ses driver properties are defined. Use the ses.conf file to configure the ses driver.
EXAMPLES
Example 1 ses.conf File Format
The following is an example of the ses.conf file format:
#
# Copyright (c) 1996, by Sun Microsystems, Inc.
# All rights reserved.
#
#
#ident "@(#)ses.conf 1.1 97/02/10 SMI"
#
name="ses" parent="sf"
target=15;
name="ses" parent="SUNW,pln" port=0 target=15;
name="ses" parent="SUNW,pln" port=1 target=15;
name="ses" parent="SUNW,pln" port=2 target=15;
name="ses" parent="SUNW,pln" port=3 target=15;
name="ses" parent="SUNW,pln" port=4 target=15;
name="ses" parent="SUNW,pln" port=5 target=15;
name="ses" class="scsi"
target=15 lun=0;
IOCTLS
The SES driver currently supports the SES, SAFTE and SEN enclosure service chipsets. SEN and SAFTE protocols are translated internally in
the driver into SES compliant data structures. This enables the SES driver to work seamlessly with different protocols and eliminates the
need to enhance user applications.
SESIOC_GETNOBJ Returns an unsigned integer that represents the number of SES data structures in the enclosure services chip.
SESIOC_GETOBJMAP Returns a size array containing ses_object elements communicated through SESIOC_GETNOBJ(). ses_object is defined in
sesio.h.
SESIOC_INIT Instructs the device to perform a self-diagnostic test. Currently SES & SEN devices always return success.
SESIOC_GETENCSTAT Returns an unsigned character that represents status enclosure as defined by Table 25 in Section 7.1.2 of the SES
specification NCITS 305-199x.
SESIOC_GETOBJSTAT This ioctl is passed an ses_objarg containing the obj_id you want to set, then fills in the remaining fields according
to element status page of the SES specification.
SESIOC_SETOBJSTAT Sets options in the control field. You set control field options by filling out all fields in ses_objarg. Field defi-
nitions are presented in Section 7.2.2 of the SES specification.
FILES
/kernel/drv/ses.conf Driver configuration file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |SPARC |
+-----------------------------+-----------------------------+
SEE ALSO driver.conf(4), scsi(4), attributes(5), esp(7D), isp(7D), ioctl(9E)SunOS 5.11 27 May 2008 ses(7D)