|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
substitute \n by space
I'm writing a bash script that is supposed to turn a particular xml into xhtml. I'm using pipelines in between regular expressions (sed).
The only thing I'm having problems with is defining a newline in sed. So getting everything on 1 line would help; an expression for \n to be able to rearrange field / \(...\) \(...\)/ \2 \1/ would be ideal. I'm only a beginner & I couldn't find a solution searching the forum. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Quote:
(Remember to add a final newline.) |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
thanks very much!!!
|
| Sponsored Links | ||
|
![]() |
| Tags |
| bash, newline reg-ex, sed newline |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Substitute in VI | brian112 | UNIX for Dummies Questions & Answers | 3 | 02-14-2012 11:19 AM |
| substitute (') | cosmologist | UNIX for Dummies Questions & Answers | 2 | 08-25-2011 02:31 AM |
| Calculate total space, total used space and total free space in filesystem names matching keyword | bigben1220 | Shell Programming and Scripting | 4 | 11-25-2009 10:37 AM |
| How to substitute? | vanitham | Shell Programming and Scripting | 2 | 12-14-2008 11:12 PM |
| Substitute in vi | kingdbag | UNIX for Dummies Questions & Answers | 5 | 01-17-2007 01:42 PM |
|
|