The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Automate config changes
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Automate config changes
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-05-2007
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Try this
sed
command:
sed
-n -e '/^\[Section1\]/{;n' -e ':a' -e 'p;n;s/^\[Section//;t' -e'ba' -e'}' data
You should cut and paste since the syntax is a little tricky. And replace "data" with your filename.
Perderabo
View Public Profile
Find all posts by Perderabo
Find Perderabo's past nominations received
Find Perderabo's present nominations given