![]() |
|
|
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 |
| PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 | Przemek | SUN Solaris | 4 | 05-26-2008 01:11 AM |
| <drive type unknown> when format command run | prvnrk | SUN Solaris | 1 | 09-08-2007 11:56 AM |
| NSS - LDAP ---> su: Unknown id: | Awadhesh | UNIX for Advanced & Expert Users | 1 | 08-02-2007 12:58 AM |
| unknown utility | DILEEP410 | UNIX for Dummies Questions & Answers | 2 | 04-23-2007 10:50 AM |
| How do I ftp to an unknown host? | AllyJones | UNIX for Advanced & Expert Users | 3 | 05-23-2003 05:52 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sed unknown command
Hi everyone, I am trying to replace a string that contains a space using sed. A typical input file is: Code:
CATEGORY=1 1:1.0 CATEGORY=2 13:1.0 CATEGORY=3 1:99.0 CATEGORY=8 14:1.0 CATEGORY=11 1:1.0 I want to use a string (as it can change) to make replacements using Code:
toReplace='s/CATEGORY=11 /+1 /g' sed -e $toReplace $outputFile > $outputFile.tmp I get a command unknown error from sed. Can anyone help please? Last edited by bakunin; 09-17-2008 at 07:16 AM.. Reason: added code tags, please use them when posting files/scripts. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|