![]() |
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 |
| counting the lines matching a pattern, in between two pattern, and generate a tab | d.chauliac | Shell Programming and Scripting | 4 | 03-19-2009 01:30 PM |
| pattern matching | talashil | Shell Programming and Scripting | 2 | 02-10-2009 10:59 AM |
| comment/delete a particular pattern starting from second line of the matching pattern | imas | Shell Programming and Scripting | 4 | 10-13-2008 03:37 AM |
| Pattern matching | blue_bird | UNIX and Linux Applications | 3 | 10-08-2008 02:23 AM |
| help need for pattern matching | HIMANI | UNIX for Dummies Questions & Answers | 10 | 01-22-2008 07:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
sed pattern matching or passing variables
I need sed to add a "/>" to the end of a line that contains/starts with <meta.
current line is HTML Code:
<meta name="keywords" content="kayword 1, kwyword2">
HTML Code:
<meta name="keywords" content="kayword 1, kwyword2 " />
i need something like this? Code:
find . -name "*.html" -print0 | xargs -0 sed -i 's/<meta *>/<meta * \/>/g' ![]() |
| Bookmarks |
| Tags |
| find, sed, xargs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|