i am new user of unix.i have a question.My script is-
export STR_ALFA=`head -2 "${FILE_PATH}"|tail -1|cut -d"," -f1`
"${TEST_HOME}"/function/chk_alfa.ksh STR_ALFA
now i want to check STR_ALFA:
1)whether is alphabetic
2)whether is numeric
3)whether is alphanumeric... (1 Reply)
Hi All,
Input=abcDEF_1.6k1
I need to use ‘sed' command to get 1.6 value and store to some variable from the given input.
Please help me in getting the command.
Regards,
Kalai (2 Replies)
I have one text file like
1 filename
2 filename2
3 hi
4 myname
i have one variable in which i have index value..i.e.1,2,3 and so...
i want to copy value after the index into somevariable.....
how i can do it.... (2 Replies)
/home8/mc09ats/UnixCw/file4
this is the path...i have 2 variables filename and filepath...i want
filename=file4
filepath=/home8/mc09ats/UnixCw
i.e. i think i have to find last occurence of "/" in string and the string after "/" want to take in some variable and string before last "/"... (4 Replies)
I gurus of Solaris,
I need to do a Procedure concerning in the Maintenance of Solaris Server.
What are the parameters that I must be see Periodically in a Server.
For example the space I (df -h) must be each week.- In this server exist a Database aplication (Oracle), and log's that increase or... (4 Replies)
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
Hi Friends
I am new to sed programming , i found that the below code can search for the $ToSearch and Replace it with $ToReplace ( $ToSearch and $ToReplace are my variables in my script )
sed "s/$ToSearch/$ToReplace/" $file > $output
mv $output $file
In testing the script i found that... (3 Replies)
Hi Gurus,
I did an exhaustive search for finding the script using "sed" to exclude the first line of file during find and replace.
The first line in my file is the header names.
Thanks for your help.. (4 Replies)
I have a file that contains RewriteRules for 200 countries (2 examples for 1 country below):
RewriteRule ^/at(/|/index.html|)$ http://%{HTTP_HOST}/locate/index.html?locale=de_AT
#&
RewriteRule ^/at_english(/|/index.html|)$ http://%{HTTP_HOST}/locate/index.html?locale=en_AT
I have... (5 Replies)
Hi all,
Saying we have two files:
1. A "Reference File" whose content is "Variable Name": "Variable Value"
2. A "Model File" whose content is a model program in which I want to substitute "VariableName" with their respective value to produce a third file "Program File" which would be a... (4 Replies)
Discussion started by: dae
4 Replies
LEARN ABOUT SUSE
struct_usb_host_config
STRUCT USB_HOST_CONF(9) Host-Side Data Types and Macro STRUCT USB_HOST_CONF(9)NAME
struct_usb_host_config - representation of a device's configuration
SYNOPSIS
struct usb_host_config {
struct usb_config_descriptor desc;
char * string;
struct usb_interface_assoc_descriptor * intf_assoc[USB_MAXIADS];
struct usb_interface * interface[USB_MAXINTERFACES];
struct usb_interface_cache * intf_cache[USB_MAXINTERFACES];
unsigned char * extra;
int extralen;
};
MEMBERS
desc
the device's configuration descriptor.
string
pointer to the cached version of the iConfiguration string, if present for this configuration.
intf_assoc[USB_MAXIADS]
list of any interface association descriptors in this config
interface[USB_MAXINTERFACES]
array of pointers to usb_interface structures, one for each interface in the configuration. The number of interfaces is stored in
desc.bNumInterfaces. These pointers are valid only while the the configuration is active.
intf_cache[USB_MAXINTERFACES]
array of pointers to usb_interface_cache structures, one for each interface in the configuration. These structures exist for the entire
life of the device.
extra
pointer to buffer containing all extra descriptors associated with this configuration (those preceding the first interface descriptor).
extralen
length of the extra descriptors buffer.
DESCRIPTION
USB devices may have multiple configurations, but only one can be active at any time. Each encapsulates a different operational
environment; for example, a dual-speed device would have separate configurations for full-speed and high-speed operation. The number of
configurations available is stored in the device descriptor as bNumConfigurations.
A configuration can contain multiple interfaces. Each corresponds to a different function of the USB device, and all are available whenever
the configuration is active. The USB standard says that interfaces are supposed to be numbered from 0 to desc.bNumInterfaces-1, but a lot
of devices get this wrong. In addition, the interface array is not guaranteed to be sorted in numerical order. Use usb_ifnum_to_if to look
up an interface entry based on its number.
Device drivers should not attempt to activate configurations. The choice of which configuration to install is a policy decision based on
such considerations as available power, functionality provided, and the user's desires (expressed through userspace tools). However,
drivers can call usb_reset_configuration to reinitialize the current configuration and all its interfaces.
COPYRIGHT Kernel Hackers Manual 2.6. July 2010 STRUCT USB_HOST_CONF(9)