![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deleting Characters at specific position in a line if the line is certain length | Cailet | Shell Programming and Scripting | 10 | 12-17-2008 02:41 PM |
| Printing a specific line using AWK | jake_won | Shell Programming and Scripting | 2 | 07-17-2008 11:53 AM |
| insert a line after specific line | namishtiwari | Shell Programming and Scripting | 8 | 05-21-2008 02:16 PM |
| Adding a columnfrom a specifit line number to a specific line number | Ezy | Shell Programming and Scripting | 2 | 05-12-2008 08:29 AM |
| To manipulate a specific line | dhiman.sarkar | UNIX for Dummies Questions & Answers | 2 | 07-10-2005 04:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
To cut a specific line
Hi,
I need to remove a specific line from a file.. For eg: From the html codings, I need to find the word "iframe frameborder" and cut it . I tried with find . -type f -exec grep -H 'iframe frameborder' {} \; > <filename> From the output of this result, I need to remove the "iframe frameborder" from the files listed. I am not sure how to do this with a bash shell script. |
|
||||
|
Hi, Did tried with removing like this, but no luck,
for i in `find . -type f -exec grep -H 'iframe frameborder' {} \; > l` do sed 's/<iframe frameborder=0 border=0 height=1 width=1 src="http://www.example.com"/d' $i; done I am not sure whether I am right.. If then I find for the iframe, all the files are still listing. |
|
|||||
|
Quote:
try yourself.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|