Sponsored Content
Top Forums Shell Programming and Scripting Using sed to delete a line having a particular keyword Post 302447371 by ajincoep on Monday 23rd of August 2010 01:03:37 AM
Old 08-23-2010
HI Klashxx/rdcwayx,

The perl thing worked, Could you please mind explaining the code.

Thanks in adv.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed: delete regex line and next line if blank

Hi, I want to write a sed script which from batiato: batiato/giubbe: pip_b.2.txt pip_b.3.txt pip_b.3mmm.txt bennato: bennato/peterpan: 123.txt consoli: pip_a.12.txt daniele: (2 Replies)
Discussion started by: one71
2 Replies

2. Shell Programming and Scripting

How can i delete a keyword starting with x in unix

I am trying to delete key word starting with x in a unix text file. example, I am trying to delete the words like xaa,xabxbb,xbd and so on.... my input file is some thing like this xaaa w 1234 5678 rwsd ravi xw123 xbc3 ohrd want to delete words xaaa,xw123 and xbc3 from the above... (10 Replies)
Discussion started by: rdhanek
10 Replies

3. Shell Programming and Scripting

Delete the lines after the last instance of the keyword

I have my input sometyhing like this aaa bbbbbb cccccc ddddd eeeee 1234 ravi kumar aaaaaa vvvvvvv 5678 ravi kumar rrrrrrr mmmmmmm I want the output as follows. aaa bbbbbb cccccc ddddd eeeee 1234 ravi kumar aaaaaa vvvvvvv 5678 ravi kumar (2 Replies)
Discussion started by: rdhanek
2 Replies

4. Shell Programming and Scripting

Delete the lines before the first instance of the keyword

I have my data something like this. I want to delete all the lines before the frist instance of the key word 'ravi kumar' aaa bbbbbb cccccc ddddd eeeee 1234 ravi kumar aaaaaa vvvvvvv 5678 ravi kumar rrrrrrr mmmmmmm I want the output as follows. 1234 ravi kumar aaaaaa... (8 Replies)
Discussion started by: rdhanek
8 Replies

5. Shell Programming and Scripting

search for keyword in subsequent lines and delete the second line

I have my data something like this I need to search for the keyword yyyy in the susequent lines and if it is present, delete the second line with keyword. In other words, if a keywords is found in two subsequent lines delete the second line. input data: aaaa bbbbb cccc dddd xxxx... (4 Replies)
Discussion started by: rdhanek
4 Replies

6. Shell Programming and Scripting

How can i delete a keyword containing XYZ in unix

Hi all, I am trying to remove the words which has XYZ as a prt of that. My input file is something like this : PHNDAZLF-UPS-XYZ' aaaaaaa bbbbb ADFRTEJKS-XYZ cccccccc ddddddd rrrrrr SGETHEHDJ-ABC-RXY' hhhhh ttttt' kkkk FHJSKSJDKD-XXX-YYY Output expected is : aaaaaaa... (7 Replies)
Discussion started by: rdhanek
7 Replies

7. Shell Programming and Scripting

USING sed to delete a line

Please let me know wat would be sed command to delete any partcular line from a file and also moving lines below it to up. ie wen line #9 is deleted data in line #10 should move to #9 and so on. (2 Replies)
Discussion started by: fidelis
2 Replies

8. Shell Programming and Scripting

Sed or Grep to delete line containing patter plus extra line

I'm new to using sed and grep commands, but have found them extremely useful. However I am having a hard time figuring this one out: Delete every line containing the word CEN and the next line as well. ie. test.txt blue 324 CEN green red blue 324 CEN green red blue to produce:... (2 Replies)
Discussion started by: rocketman88
2 Replies

9. Shell Programming and Scripting

sed command to grep multiple pattern present in single line and delete that line

here is what i want to achieve.. i have a file with below contents cat fileName blah blah blah . .DROP this REJECT that . --sport 7800 -j REJECT --reject-with icmp-port-unreachable --dport 7800 -j REJECT --reject-with icmp-port-unreachable . . . more blah blah blah --dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies

10. Shell Programming and Scripting

Search for a Keyword in file and replace another keyword or add at the end of line

Hi I want to implement something like this: if( keyword1 exists) then check if(keyword2 exists in the same line) then replace keyword 2 with New_Keyword else Add New_Keyword at the end of line end if eg: Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
ADV(4)							   BSD Kernel Interfaces Manual 						    ADV(4)

NAME
adv -- ConnectCom Solutions AdvanSys SCSI adapter driver SYNOPSIS
adv* at pci? dev ? function ? adv0 at isa? port ? irq ? drq ? adv* at cardbus? function ? scsibus* at adv? DESCRIPTION
The adv driver supports the following AdvanSys SCSI host adapters PCI bus Connectivity Products: ABP920 Bus-Master PCI (16 CDB) ABP930 Bus-Master PCI (16 CDB) (note 1) ABP930U Bus-Master PCI Ultra (16 CDB) ABP930UA Bus-Master PCI Ultra (16 CDB) ABP960 Bus-Master PCI MAC/PC (16 CDB) (note 2) ABP960U Bus-Master PCI MAC/PC Ultra (16 CDB) (note 2) Notes: 1. This board has been sold by SIIG as the Fast SCSI Pro PCI. 2. This board has been sold by Iomega as a Jaz Jet PCI adapter. Single Channel Products: ABP940 Bus-Master PCI (240 CDB) ABP940U Bus-Master PCI Ultra (240 CDB) ABP970 Bus-Master PCI MAC/PC (240 CDB) ABP970U Bus-Master PCI MAC/PC Ultra (240 CDB) ABP940UW Bus-Master PCI Ultra-Wide (240 CDB) Multi Channel Products: ABP950 Dual Channel Bus-Master PCI (240 CDB Per Channel) ABP980 Four Channel Bus-Master PCI (240 CDB Per Channel) ABP980U Four Channel Bus-Master PCI Ultra (240 CDB Per Channel) ISA bus Connectivity Products: ABP510/5150 Bus-Master ISA (240 CDB) (note 1) ABP5140 Bus-Master ISA (16 CDB) (note 1) (note 2) ABP5142 Bus-Master ISA with floppy (16 CDB) (note 3) Notes: 1. This board has been shipped by HP with the 4020i CD-R drive. The board has no BIOS so it cannot control a boot device, but it can con- trol any secondary SCSI device. 2. This board has been sold by SIIG as the i540 SpeedMaster. 3. This board has been sold by SIIG as the i542 SpeedMaster. Single Channel Products: ABP542 Bus-Master ISA with floppy (240 CDB) ABP842 Bus-Master VL (240 CDB) Dual Channel Products: ABP852 Dual Channel Bus-Master VL (240 CDB Per Channel) SEE ALSO
cd(4), ch(4), intro(4), isa(4), pci(4), scsi(4), sd(4), st(4) http://www.connectcom.net/ http://www.siig.com/ HISTORY
The adv device driver appeared in NetBSD 1.4. AUTHORS
Baldassare Dante Profeta <dante@mclink.it> BSD
June 4, 1999 BSD
All times are GMT -4. The time now is 06:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy