![]() |
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 |
| comment/delete a particular pattern starting from second line of the matching pattern | imas | Shell Programming and Scripting | 4 | 10-13-2008 02:37 AM |
| Sed and replacing one occurence of pattern | ss9u | Shell Programming and Scripting | 6 | 07-16-2008 02:06 PM |
| replacing a pattern in a file | ROOZ | Shell Programming and Scripting | 6 | 06-11-2008 12:04 PM |
| Replacing more than 1 pattern in a line | Manan | Shell Programming and Scripting | 6 | 12-28-2006 01:58 AM |
| Replacing pattern in variable | videsh77 | Shell Programming and Scripting | 1 | 05-26-2005 02:11 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
while replacing the pattern last line is last
I am using sed command to replace the pattern, i am replacing value of variable x with value of nw for a file temp2.
/usr/bin/sed 's|'$x'|'$nw'|' temp2 > $file After running it my last line is getting lost. What can be reason of this? |
| Bookmarks |
| Tags |
| last line lost, replace, sed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|