![]() |
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 |
| Problems with cut | scorpio | Shell Programming and Scripting | 6 | 04-28-2008 08:49 AM |
| RCP problems | Daishi | UNIX for Dummies Questions & Answers | 0 | 09-10-2007 05:20 AM |
| Zip Problems | chapmana | UNIX for Dummies Questions & Answers | 4 | 11-29-2006 07:02 AM |
| gcc problems | AJA | SUN Solaris | 7 | 03-09-2004 10:44 AM |
| 'make' problems (compliation problems?) | xyyz | UNIX for Advanced & Expert Users | 5 | 11-05-2001 10:47 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Parsin Problems
Hi all
I have this line of code for parsing .properties but it does not work corectly. As you can see I want to put an "XxxX" at the end of each line that has an "=" in it and it must exclude those that have ".png". sed -e '/=/ {/\.png/!s/,/XxxX,/}' -e '/=/{/\.png/!s/$/XxxX/}' "${name}" >"${RESULT}" This is ok but it does not work correctly. When I run it it puts "XxxX" on a new line instead of the end of the line. Also I want to change it so it does NOT modify the line if it ends in a number character or ".gif" Thanks for your help - James |
|
||||
|
I can't use this because it deletes the lines that end in .png and it does not take into account lines that end in .gif or a number value.
|
| Sponsored Links | ||
|
|