![]() |
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 |
| newline character | trichyselva | UNIX for Dummies Questions & Answers | 9 | 10-31-2008 01:47 PM |
| delete newline character between html tags | girish312 | UNIX for Dummies Questions & Answers | 8 | 02-29-2008 05:24 AM |
| Substituting carriage return followed by newline character - HELP | djkane | Shell Programming and Scripting | 14 | 02-28-2006 09:58 PM |
| Substituting carriage return follwed by newline character - HELP! | djkane | UNIX for Dummies Questions & Answers | 1 | 02-27-2006 09:11 PM |
| How can I replace newline character? | ghoti | UNIX for Dummies Questions & Answers | 1 | 08-16-2001 12:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi vgersh99 & zazzybob ,
Thanks for the suggestions. printf helps to resolve the issue in ksh. But i have issues with other commands also, so i suspect that there is something to do with the shell i.e setting some environment variables or something. My main issue is with sed I am expecting the following output from the follwing command $ sed -e 's/String1/String0\nString1\nString2/' < aa String0 String1 String2 But i am getting the following output $ sed -e 's/String1/String0\nString1\nString2/' < aa String0nString1nString2 Can you please help me on this |
|
||||
|
Hi vgersh99,
thanks for your response, but it did'nt help $ cat aa String1 $ cat x #!/bin/ksh sed -e "s/String1/String0`/bin/echo`String1`/bin/echo`String2/" < aa $ ./x String0String1String2 Seems that it is ignoring the newline Thanks, Sanish |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|