I did my best to find the answer to this; my apologies if I missed it.
Some quick background: I'm looking at the protocol parsers in Bro, specifically those that have been created using BinPAC. In each folder I'm interested in, there are multiple files I want to open, using the naming convention {protocol-name}-protocol.pac
, and {protocol-name}-analyzer.pac
. The best way to view each protocol's files is side-by-side.
Now, what I want to do is have a separate tab open for each pair. That is, the first tab will have {protocol1}-protocol.pac
in one window, and {protocol1}-analyzer.pac
in an adjacent window, the second tab will have {protocol2}-protocol.pac
in one window, and {protocol2}-analyzer.pac
in an adjacent window, and so on.
I'm trying to figure out a way to do the above for all of the relevant folders in one command from the command line. I know how to open all the relevant files in separate tabs, or separate windows, but I can't figure out a way to combine these to get the behavior I want. I could do this manually i.e. open one pair, create a new tab and open another pair etc., but that's obnoxious and repetitive, so I'd much rather do it in one command if possible.
Anyone have any idea how to do this? Or if it's even possible?