Microsoft
Software
Hardware
Network
Question : File manipulation SED or AWK
I'm trying to create a .ksh file in UNIX that will append a new line to the line ABOVE the line it finds. So, the unique charactaristic would exist on the "portalinstance" node below. I want to find that lina and then drop another "component" BEFORE the "component" line above it.
I need to use a script to accomplish this and have little experience with SED and AWK.
Thanks.
Answer : File manipulation SED or AWK
Thanks for the suggestions. I ended up using an "ed" script. It turned out to be rather easy. I built a list of commands in the script and then input them into ed:
ed
<
input file:
/
^
i
.
/
+
a
.
w
q
Random Solutions
Files gone missing and only shortcuts appear
Sendmail mailhost not resolved
How to share folder within a workgroup on a PC running Windows XP Pro SP2
Crystal Reports XI - Isnull Formula
Rails: How do I get the domain name
Boot.ini missing in action
A problem is preventing Windows from accurately checking the license for this computer, Error Code 0X8009006
Deleting a User Profile
Active Session Time Limit not on list
Bad parameter type. Microsoft Office Excel is expecting a different kind of value than was provided.