Create files based on templates and line content?

2014-10-03 Thread Alan Truly
Check the manual for #bbinclude

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Create files based on templates and line content?

2014-10-03 Thread Greg Raven
Not certain if this is what you are seeking, but someone posted a couple 
months back a method for creating separate files from a list in a text 
file. You might start there.

On Thursday, October 2, 2014 7:39:14 AM UTC-7, Jakob Peterhänsel wrote:
>
> [Sorry if this double-posts, but can't see the first one sent..]
>
> Hi All,
>
> I would like to create files based on template files, replacing 
> placeholders with content from 'fields' on a line in a document.
>
> Ex:
>
> Raw data file contect:
>
> ip_address_1 hostname_1 data_1
> ip_address_2 hostname_2 data_2
> ip_address_3 hostname_3 data_3
>
> I would then like to replace placeholders in a template file and create 
> one file pr. line.
>
> Anyone have any workflows/scripts for that?
>
> Thanks in advance,
>
> Jakob
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Create files based on templates and line content?

2014-10-02 Thread Jakob Peterhänsel
[Sorry if this double-posts, but can't see the first one sent..]

Hi All,

I would like to create files based on template files, replacing 
placeholders with content from 'fields' on a line in a document.

Ex:

Raw data file contect:

ip_address_1 hostname_1 data_1
ip_address_2 hostname_2 data_2
ip_address_3 hostname_3 data_3

I would then like to replace placeholders in a template file and create one 
file pr. line.

Anyone have any workflows/scripts for that?

Thanks in advance,

Jakob

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.