![]() |
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 |
| carriage return or funky character stuck in my variables - help :) | audiophile | Shell Programming and Scripting | 5 | 09-06-2008 12:29 PM |
| return value problem | ravi raj kumar | UNIX for Advanced & Expert Users | 3 | 07-01-2007 01:36 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 |
| Test return character. | gio123bg | Shell Programming and Scripting | 3 | 12-09-2003 08:21 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sed and character return problem
Hi,
I have a problem with sed. It doesn't recognize the "\n" character. It substitudes an "n", instead of introducing a new line. This doesn't happend with print $ print "test \n \n" (it deos introduce two lines after hello) (AIX) $ sed s/bc/\n/g test.1 >test.2 $ cat test.1 bcdefg abcdefgafj $ more test.2 ndefg andefgafj The same happend with: sed 's/bc/\n/g test.1' >test.2 sed "s/bc/\n/g" test.1 >test.2 sed s/"bc"/"\n"/g test.1 >test.2 Anybody has an idea? thanks S |
|
||||
|
Same question resolved here:
How to replace any char with newline char. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|