Sponsored Content
Top Forums Shell Programming and Scripting how to find entries, NOT starting with specific pattern Post 302545334 by ankitachaurasia on Monday 8th of August 2011 05:32:09 AM
Old 08-08-2011
how to find entries, NOT starting with specific pattern

Hey,I have a file in following format
Code:
>1
ABC........
>2
XYZ.....
>3
ABC........
>4
MNO.......
>5
ABC.......

now I would like to find only those entries that doesn't start with ABC (specific pattern)e.g preferred output:
Code:
>2
XYZ....
>4
MNO.......


it will be nice if anybody how to do this!!!
thnx

Last edited by Scott; 08-08-2011 at 06:49 AM.. Reason: Code tags
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perform some operation on a specific coulmn starting from a specific line

I have a txt file having rows and coulmns, i want to perform some operation on a specific coulmn starting from a specific line. eg: 50.000000 1 1 1 1000.00000 1000.00000 50000.000 19 19 3.69797533E-07 871.66394 ... (3 Replies)
Discussion started by: shashi792
3 Replies

2. Shell Programming and Scripting

Concatenate lines between lines starting with a specific pattern

Hi, I have a file such as: --- >contig00001 length=35524 numreads=2944 gACGCCGCGCGCCGCGGCCAGGGCTGGCCCA CAGGCCGCGCGGCGTCGGCTGGCTGAG >contig00002 length=4242 numreads=43423 ATGCCGAAGGTCCGCCTGGGGCTGG CGCCGGGAGCATGTAGCG --- I would like to concatenate the lines not starting with ">"... (9 Replies)
Discussion started by: s052866
9 Replies

3. Shell Programming and Scripting

find the line starting with a pattern and save a part in variable

Hi i have a file which has mutiple line in it. inside that i have a pattern similar to this /abc/def/hij i want to fine the pattern starting with "/" and get the first word in between the the symbols "/" i.e. "abc" in this case into a variable. thanks in advance (13 Replies)
Discussion started by: kichu
13 Replies

4. Shell Programming and Scripting

Delete multiple lines starting with a specific pattern

Hi, just tried some script, awk, sed for the last 2 hours and now need help. Let's say I have a huge file of 800,000 lines like this : It's a tedious job to look through it, I'd like to remove those useless lines in it as there's a few thousands : Or to be even more precise : if line1 =... (6 Replies)
Discussion started by: Zurd
6 Replies

5. Shell Programming and Scripting

How to find a file with a specific pattern for current sysdate & upon find email the details?

I need assistance with following requirement, I am new to Unix. I want to do the following task but stuck with file creation date(sysdate) Following is the requirement I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies

6. Shell Programming and Scripting

Regex in sed to find specific pattern and assign to variable

(5 Replies)
Discussion started by: radioactive9
5 Replies

7. Shell Programming and Scripting

Extract specific line in an html file starting and ending with specific pattern to a text file

Hi This is my first post and I'm just a beginner. So please be nice to me. I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file? I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies

8. Shell Programming and Scripting

Find specific pattern and change some of block values using awk

Hi, Could you please help me finding a way to replace a specific value in a text block when matching a key pattern ? I got the keys and the values from a command similar to: echo -e "key01 Nvalue01-1 Nvalue01-2 Nvalue01-3\nkey02 Nvalue02-1 Nvalue02-2 Nvalue02-3 \nkey03 Nvalue03-1... (2 Replies)
Discussion started by: alex2005
2 Replies

9. UNIX for Beginners Questions & Answers

How to find a specific sequence pattern in a fasta file?

I have to mine the following sequence pattern from a large fasta file namely gene.fasta (contains multiple fasta sequences) along with the flanking sequences of 5 bases at starting position and ending position, AAGCZ-N16-AAGCZ Z represents A, C or G (Except T) N16 represents any of the four... (3 Replies)
Discussion started by: dineshkumarsrk
3 Replies
scsi_vhci(7D)                                                         Devices                                                        scsi_vhci(7D)

NAME
scsi_vhci - SCSI virtual host controller interconnect driver DESCRIPTION
The scsi_vhci driver is a SCSA compliant pseudo nexus driver that supports Solaris operating system I/O multipathing services for SCSI-3 devices. This driver introduces a fundamental restructuring of the Solaris device tree to enable a multipath device to be represented as single device instance rather than as an instance per physical path as in earlier Solaris versions. The multipath SCSI target devices managed by this driver are identified and represented by using SCSI-3 VPD page(0x83) as the device's unit address. Symbolic links in /dev/[r]dsk continue to adhere to the cNtNdNsN format. cN is the logical controller number assigned to this driver instance. tN is the global unique identifier (GUID) of the multipath target device (64/128 bits), represented as hexadecimal numbers. The following is an example of a system with a A5000 storage array: ... /dev/rdsk/c4t200000203709C3F5d0s0 -> ../../devices/scsi_vhci/ ssd@g200000203709c3f5:a,raw ... /dev/rdsk/c4t200000203709C3F5d0s7 -> ../../devices/scsi_vhci/ ssd@g200000203709c3f5:h,ra ... The following is an example of a system with a T300 storage array: ... /dev/rdsk/c1t60020F200000033939C2C2B60008D4AEd0s0 -> ../../devices/ scsi_vhci/ssd@g60020f200000033939a2c2b60008d4ae:a,raw ... /dev/rdsk/c1t60020F200000033939A2C2B60008D4AEd0s7 -> ../../devices/ scsi_vhci/ssd@g60020f200000033939a2c2b60008d4ae:h,raw The scsi_vhci driver receives naming and transport services from one or more physical HBA (host bus adapter) devices. To support multi- pathing, a physical HBA driver must comply with the multipathing services provided by this driver. The scsi_vhci driver supports the standard functions provided by the SCSA interface. Configuration The scsi_vhci driver can be configured by defining properties in the scsi_vhci.conf file. The scsi_vhci driver supports the following property: device-type-scsi-options-list To add a third-party (non-Sun) symmetric storage device to run under scsi_vhci (and thereby take advantage of Solaris I/O multipathing), you add the vendor ID and product ID for the device, as those strings are returned by the SCSI Inquiry command. As shipped, the scsi_vhci.conf file contains, in part: # device-type-scsi-options-list = # "SUN SENA", "symmetric-option"; # symmetric-option=0x1000000; For example,to add a device from a vendor with the ID of "Acme" and a product ID of "MSU", you would add: device-type-scsi-options-list = "Acme MSU", "symmetric-option"; symmetric-option=0x1000000; In addition to "Acme," you also might want to add another entry, for example, a device from "XYZ" vendor with a product ID of "ABC:" device-type-scsi-options-list = "Acme MSU", "symmetric-option", "XYZ ABC", "symmetric-option"; symmetric-option=0x1000000; FILES
/kernel/drv/sparcv9/scsi_vhci 64-bit kernel module (SPARC). /kernel/drv/scsi_vhci 32-bit kernel module (x86). /kernel/drv/scsi_vhci.conf Driver configuration file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |PCI-based systems | +-----------------------------+-----------------------------+ |Availability |SUNWckr | +-----------------------------+-----------------------------+ SEE ALSO
eeprom(1M), prtconf(1M), attributes(5), fcp(7D), fctl(7D), fp(7D), ssd(7D), scsi_abort(9F), scsi_ifgetcap(9F), scsi_pkt(9S), scsi_reset(9F), scsi_transport(9F), scsi_inquiry(9S), scsi_extended_sense(9S) Writing Device Drivers Small Computer System Interface-3 (SCSI-3) NOTES
In previous releases, the scsi_vhci.conf file supported the mpxio-disable property, which allowed you to disable Solaris I/O multipathing on a system-wide basis. This property is not present in the current release of the Solaris operating system. Multipathing is always enabled in scsi_vhci. If you want to disable multipathing, use the mechanisms provided by the HBA drivers. See fp(7D). In previous releases, Solaris I/O multipathing was also known as MPxIO and Sun StorEdge Traffic Manager (STMS). SunOS 5.10 2 Dec 2004 scsi_vhci(7D)
All times are GMT -4. The time now is 02:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy