Hello All,
Plz help me with:
I have a csv file with data separated by ',' and optionally enclosed by "". I want to check each of these values to see if they exceed the specified string length, and if they do I want to cut just that value to the max length allowed and keep the csv format as it... (9 Replies)
I wannt to cut first char of any string.
str=A2465443
out put will be.
str1=A
str2=2465443.
I tried
str2=${?%srt}
str1=${str#$str2}
it is not working. (6 Replies)
Hi,
I have a path like this c:\test\sample\programs, i need to change thiis to c:\\test\\sample\\programs. How to perform this? I tried tr command but it didn't help me.
Thanks
Vijayan (3 Replies)
Hi
I am having a file with the following content(its created by ls of a directory):
-rw-r----- 1 321 321 0 Oct 14 10:41 xcv23456
-rw-r----- 1 321 321 0 Oct 14 10:41 xcv23457
-rw-r----- 1 321 321 0 Oct 14 10:41 xcv23458
-rw-r----- 1 321 321 ... (6 Replies)
hi all,
suppose a string:
abc/def/ghi/jkl/mn.txt
and i want to get the file name without the path.
however, different files have different paths, therefore the number of delimiter is uncertain.
thanks so much! (3 Replies)
Hi in a directory i've files having the following name
for_category_info_19990101984301
for_catgry_meta_19991111214601
-------
I just want the name till year and month i.e;
for_category_info_199901
for_catgry_meta_199911
How can i achieve the above string
Thanks (2 Replies)
---------- Post updated at 10:31 AM ---------- Previous update was at 10:28 AM ----------
Hello,
I am trying to get the string cut based on the following needs:
String1=Submitted request 25574824 for CONCURRENT SQLAP RUAPACTUALSEXT Y RUAPACTUALS122313100616.dat "2013/01/12 14:50:44"... (6 Replies)
Hi Team,
Here's the record in a file.
abc\USER DEFINED\123\345\adf\aq1
Delimiter here is "\USER DEFINED\"
Expected output:
abc|123\345\adf\aq1
Find "\USER DEFINED\" and replace it with "|".
Can anyone please help us to fix this issue?
Please use CODE tags as required by... (5 Replies)
Discussion started by: kmanivan82
5 Replies
LEARN ABOUT SUNOS
scsi_hba_init
scsi_hba_init(9F) Kernel Functions for Drivers scsi_hba_init(9F)NAME
scsi_hba_init, scsi_hba_fini - SCSI Host Bus Adapter system initialization and completion routines
SYNOPSIS
#include <sys/scsi/scsi.h>
int scsi_hba_init(struct modlinkage *modlp);
void scsi_hba_fini(struct modlinkage *modlp);
INTERFACE LEVEL
Solaris architecture specific (Solaris DDI).
PARAMETERS
modlp Pointer to the Host Bus Adapters module linkage structure.
DESCRIPTION
scsi_hba_init()
scsi_hba_init() is the system-provided initialization routine for SCSI HBA drivers. The scsi_hba_init() function registers the HBA in the
system and allows the driver to accept configuration requests on behalf of SCSI target drivers. The scsi_hba_init() routine must be called
in the HBA's _init(9E) routine before mod_install(9F) is called. If mod_install(9F) fails, the HBA's _init(9E) should call scsi_hba_fini()
before returning failure.
scsi_hba_fini()
scsi_hba_fini() is the system provided completion routine for SCSI HBA drivers. scsi_hba_fini() removes all of the system references for
the HBA that were created in scsi_hba_init(). The scsi_hba_fini() routine should be called in the HBA's _fini(9E) routine if mod_remove(9F)
is successful.
RETURN VALUES
scsi_hba_init() returns 0 if successful, and a non-zero value otherwise. If scsi_hba_init() fails, the HBA's _init() entry point should
return the value returned by scsi_hba_init().
CONTEXT
scsi_hba_init() and scsi_hba_fini() should be called from _init(9E) or _fini(9E), respectively.
SEE ALSO _fini(9E), _init(9E), mod_install(9F), mod_remove(9F), scsi_pktalloc(9F), scsi_pktfree(9F), scsi_hba_tran(9S)
Writing Device Drivers
NOTES
The HBA is responsible for ensuring that no DDI request routines are called on behalf of its SCSI target drivers once scsi_hba_fini() is
called.
SunOS 5.10 1 Nov 1993 scsi_hba_init(9F)