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
Why are we being greylisted?
How do I export an Access table to Excel, exporting multiple sheets based on select on the table
Conditional where statement to include or exclude null values
Isdate MSSQL not validating dates
Spam mail from a valid account
Windows Upgrade Failed. How can I cancel installation?
Dns and GP Errors- Network binding errors
Questions about VMware
Need a script that will query all user accounts and groups in the Local Adminstrators group for WIndows 2000/2003 Servers
Where can I download a new copy of the file CNFNOT32.EXE?