ddrew78 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to insert a simple line break after the word "priority", so it would look like this:policy-map ipcos-abcde16 class abcde16-Queue1 priority police rate percent 35 class abcde16-Queue2 bandwidth 25 class abcde16-Queue3 bandwidth 15
I have tried several variations of this command, but I either get nothing or a "sed: command garbled: s/priority/priority" error. I truly only need help with this one line :-(policy-map ipcos-abcde16 class abcde16-Queue1 priority police rate percent 35 class abcde16-Queue2 bandwidth 25 class abcde16-Queue3 bandwidth 15
And, before anybody asks, yes I am using strict and warnings. Any help would be appreciated.system "sed 's/priority/priority\n\/' cos2 > cos4"; system "mv cos4 cos2";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inserting line break
by mr_mischief (Monsignor) on Apr 15, 2009 at 16:38 UTC | |
by ddrew78 (Beadle) on Apr 15, 2009 at 16:53 UTC | |
|
Re: inserting line break
by jethro (Monsignor) on Apr 15, 2009 at 16:51 UTC | |
|
Re: inserting line break
by Bloodnok (Vicar) on Apr 15, 2009 at 17:30 UTC |