Sponsored Content
Full Discussion: How to parse..
Top Forums Shell Programming and Scripting How to parse.. Post 36136 by biker_mike on Wednesday 21st of May 2003 02:51:24 PM
Old 05-21-2003
Computer

This is even better:

$ echo "Attempting to contact (ADDRESS=(PROTOCOL=TCP)(Host=chamar)(Port=1541))"
|tr -d ")" | cut -d"=" -f5

Should've thought of this the first time.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parse

Does anybody know how do we parse a file (ex. SIF file) into a delimited text file in UNIX? (7 Replies)
Discussion started by: nguda
7 Replies

2. UNIX for Advanced & Expert Users

Parse error

hi,:) onsider the followinf two lines J="$(scriptbc -p 8 $I / \(12 \* 100 \) )" N="$(( $L * 12 ))" In the first line I put \ before * like \* and its working fine. But in the second line if put \ before * i am getting parse error. What might be the reason?Any idea pls. cheers RRK (1 Reply)
Discussion started by: ravi raj kumar
1 Replies

3. Shell Programming and Scripting

Need help to parse the file

# Start "ABC" SFFd 0 4 Time SFFT 4 8 {Sec} User SFFTimeVal 12 8 {Sec} # Start "CP" SFFT ... (3 Replies)
Discussion started by: navsharan
3 Replies

4. Shell Programming and Scripting

Parse

I need a script that will always return an engine of table, which not depends on the table structure. I need it to be done exactly from the "show create table ..." statement. If there is a easiest way, except "show table status", please write. mysql -u root db -sBe "show create table... (1 Reply)
Discussion started by: mirusnet
1 Replies

5. Shell Programming and Scripting

Perl Parse

Hi I'm writing simple perl script to parse the ftp log as below: Local directory now /home/user/testing 227 Entering Passive Mode (192,254,19,34,8,228). 125 Data connection already open; Transfer starting. 09-25-09 02:33PM 25333629 abc.tar 09-14-09 12:50PM 18015752... (1 Reply)
Discussion started by: netxus
1 Replies

6. Shell Programming and Scripting

How to Parse a Prompt?

On the command, when I type in certain commands, they will display a prompt waiting for some input. When I type in the requested input, it will display the info I requested. For example, if I enter the telnet command, it will display a telnet prompt and wait for me to enter something. I... (1 Reply)
Discussion started by: april
1 Replies

7. Shell Programming and Scripting

Parse 2 or more files into one.

Hi, I have a really simple question...I think. I want to be able to parse two or more files into one by reading the first record from each file into new file then go back to the first file and start reading the second record in from each file into new file and so on. I am new to using awk and am... (5 Replies)
Discussion started by: qray2011
5 Replies

8. Shell Programming and Scripting

Parse

Attached file is parsed so that only the three columns result. DACH1 occurs 34 times with an average of 0.881541 NEB occurs 159 times with an average of 0.837628 LTBP1 occurs 46 times with an average of 0.748722 parse result: output.txt (the text is removed and the xxx is seperated in a... (6 Replies)
Discussion started by: cmccabe
6 Replies

9. Shell Programming and Scripting

Parse html

I downloaded source code using: wget -qO- http://fulgentdiagnostics.com/test/clinical-exome/ | cat > flugentsource.txt Now I am trying to use sed to parse it to confirm a gene count. Basically, output (flugent.txt) all the gene names with a total count after them I'm not all that... (5 Replies)
Discussion started by: cmccabe
5 Replies

10. Programming

Parse with SQL

I am trying to parse a string using SQL but am too new and still learning. I have text in a control or field 685 that is variable, but always the same format. field 685 input arr 2q33.3q34(200,900,700-209,000,000)x2 xxx Desired output 2:200900700-209000000 Basically, the # after the... (2 Replies)
Discussion started by: cmccabe
2 Replies
libstmf(3LIB)							Interface Libraries						     libstmf(3LIB)

NAME
libstmf - SCSI Target Mode Framework library SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ] #include <libstmf.h> DESCRIPTION
Functions in this library provide configuration management of the SCSI Target Mode Framework (STMF), allowing clients to manage the provi- sioning of logical units and targets to the initiator clients of the framework. Definitions Host Group A Host Group is a set of one or more initiator ports that are combined together for the purposes of applying access controls to a Logi- cal Unit object and assigning a logical unit number to the Logical Unit. The assigned logical unit number will be reported to the mem- bers of that Host Group via the SCSI REPORT LUN command. Host Groups can contain initiator ports that are not visible to the SCSI Tar- get Mode Framework. Initiator ports might not be a member in more than one group. A Host Group is associated with a given Logical Unit via a view entry. Host Group names are unique within the framework. Logical Unit A Logical Unit object is provided to the SCSI Target Mode Framework for the purposes of executing SCSI commands. Library clients can manage a Logical Unit object's accessibility to one or more SCSI initiator clients. libstmf library clients cannot add or remove Logi- cal Unit objects from the system. Every Logical Unit object within the SCSI Target Mode Framework is owned by a logical unit provider whose identity is available via the properties on the Logical Unit object. Logical Unit Number A Logical Unit Number is the SCSI identifier of a logical unit within a target. Target Port A Target port object is provided to the SCSI Target Mode Framework for the purposes of receiving SCSI commands on a particular logical unit. Library clients can manage a Logical Unit object's availability to one or more Target port objects. Library clients cannot add or remove Target objects from the system. Every Target port object within the SCSI Target Mode Framework is owned by a Local Port provider whose identity is available via the properties on the Target port object. Target Port Group A Target Port Group is a set of one or more Target ports that are combined together for the purposes of applying availability to a Log- ical Unit object. A Target Port Group may be applied to any given Logical Unit via a view entry. Target ports may not be a member in more than one Target Port Group. Target Port Group names are unique within the framework. View A View is a list of logical units exposed to a list of initiator ports through a list of targets. View Entry A View Entry object defines the association of an host group, a target group and a logical unit number with a specified logical unit. When a view entry is created for a logical unit, a caller can assign all targets and/or all initiator ports to the logical unit thus making the logical unit accessible to all target ports and/or all initiator ports. A logical unit may have one or more view entries associated with it. Any two view entries are considered to be in conflict when an attempt is made to duplicate the association of any given initiator port, target port and logical unit. Attempting this will result in an error returned from the call to stmfAddViewEn- try(3STMF). INTERFACES
The shared object libstmf.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces. stmfAddToHostGroup stmfAddToTargetGroup stmfAddViewEntry stmfClearProviderData stmfCreateHostGroup stmfCreateTargetGroup stmfDeleteHostGroup stmfDeleteTargetGroup stmfDevidFromIscsiName stmfDevidFromWwn stmfFreeMemory stmfGetHostGroupList stmfGetHostGroupMembers stmfGetLogicalUnitList stmfGetLogicalUnitProperties stmfGetProviderData stmfGetProviderDataProt stmfGetState stmfGetTargetGroupList stmfGetTargetGroupMembers stmfGetTargetList stmfGetTargetProperties stmfGetViewEntryList stmfOfflineLogicalUnit stmfOfflineTarget stmfOnlineLogicalUnit stmfOnlineTarget stmfRemoveFromHostGroup stmfRemoveFromTargetGroup stmfRemoveViewEntry stmfSetProviderData stmfSetProviderDataProt FILES
/lib/libstmf.so.1 shared object /lib/64/libstmf.so.1 64-bit shared object ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWstmf | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
Intro(3), stmfAddViewEntry(3STMF), attributes(5) SunOS 5.11 7 Oct 2008 libstmf(3LIB)
All times are GMT -4. The time now is 04:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy