[plug] Splitting data between patterns

Nathan Alberti nalberti at gmail.com
Fri Jul 18 10:51:59 WST 2008


Looking for suggestions, I have a data set that looks like the below in a
text file.

I need to split it out into individual variables, each block separated by
"#" characters represents a different host.

I'm sure awk/grep can do what I want just hoping for an example I can work
with.


Regards,

Nathan.

8< -----------

######

Data 1

Data 2

Data 3

Data 4

usename


######


Data 1

Data 2

Data 3

Data 4

usename


######


----------- >8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20080718/5d79136c/attachment.html>


More information about the plug mailing list