very stupid nube

83 views
Skip to first unread message

Anthony Gartner

unread,
Oct 14, 2025, 5:33:24 PMOct 14
to BBEdit Talk
I am not even sure what to call it.... but what i would like to do is create a file with a list of specific items for a company... 

Then i fill in a cheat sheet to create a 3rd file that i can use to copy into my fireall.

So the first file would have a list of probably 20 fields Example Below.  Bold entries would be used in a new file created (3rd file) Maybe
****************

******************** Cheat Sheet 
config system global
set auth-ike-saml-port 12443
end

config user setting
set auth-cert "Fortinet_Factory"
end

config user saml
    edit "entra-id-saml"
        set cert "Fortinet_Factory"
        set entity-id "https://vpn.construction.com:12443/remote/saml/metadata/"
        set single-sign-on-url "https://vpn.construction.com:12443/remote/saml/login"
        set single-logout-url "https://vpn.construction.com:12443/remote/saml/logout"
        set idp-entity-id "https://sts.windows.net/8egfgggc1-1715-4550-8814-38faae013a96/"
        set idp-single-sign-on-url "https://login.microsoftonline.com/8asdfe6c1-1715-4550-8814-38faae013a96/saml2"
        set idp-single-logout-url "https://login.microsoftonline.com/8asdfe6c1-1715-4550-8814-38faae013a96/saml2"
        set idp-cert "REMOTE_Cert_2"
        set user-name "name"
        set group-name "groups"
        set digest-method sha1
    next
end
********** 3rd file
would be the result of using the the first set of fields to be exported to create the company specific results to be pasted into the firewall.


Any help on where or what i am looking for would be appreciated.  I am not knowledgeable enough to know what i am even asking.

Anthony

Johnny Ragadoo

unread,
Oct 15, 2025, 1:05:02 PMOct 15
to BBEdit Talk
If I understand your usage, it looks like your source file could be a csv file. Your second file could be the result of a mail merge in a word processor, saved as plain text, and I'm not sure what form your 3rd file would need to be.

BBEdit could do all that, I think. There may be other tools that would apply, too. 

Anthony Gartner

unread,
Nov 26, 2025, 2:46:32 PM (2 days ago) Nov 26
to BBEdit Talk
Thank you... that was an idea i was thinking but not sure yet

Johnny Ragadoo

unread,
Nov 27, 2025, 10:55:18 AM (yesterday) Nov 27
to BBEdit Talk
There's also a Canonize feature in BBEDit that I'd never used that serves a possibly related mission.

Here's an example.

I'm completely smitten with a word processor called Mellel. It's my voice, rod, staff, and that magical fount from which prose flows.

In another forum, someone asked how to make table of contents entries appear one way in the manuscript and another way in the TOC in a Mellel document.

Generated tables of content are just editable text, so problem half solved there. Create the heading entries (auto-titles, in Mellel-speak) the way you want them to appear in the manuscript, generate a fresh TOC, and then hand-edit to suit your tastes.

But there's a problem. We're enlightened and highly evolved. We don't do hand edits.

BBEdit will open zip files and you can make edits in zip component files without manually zipping and unzipping. Mellel documents are actually zip format. The text portions of a document are in a component file called main.xml.

Auto-titles in Mellel are like headings with multiple formats. One format sets how they look in the manuscript, another in the TOC, and there are other formats for other contexts, like "mentions" in page footers.

A typical TOC format will have the chapter or section title followed by a tab. As stored in the document file that appears as the chapter title followed by a keyword.

BBEdit's Canonize takes a file formatted as "search string tab-character replacement string", where tab-character is an ASCII tab, decimal 9.

So, a file with lines consisting of "actual title keyword tab-character shortened TOC title" will find the chapter titles in the generated TOC but not in the manuscript and translate them as desired.

BBEdit is truly cool.
Reply all
Reply to author
Forward
0 new messages