Re: Need help accessing multiple files' content at the same time

2021-05-09 Thread Greg Raven
Great responses, but depending on the command-line processing that needs to be done, my approach would be to set up these files in a project. The files themselves would go into the Includes folder, and then the include commands would go into a single file in the build folder. This way, the

Re: Need help accessing multiple files' content at the same time

2021-05-08 Thread Christopher Stone
On 05/07/2021, at 17:10, @lbutlr mailto:krem...@kreme.com>> wrote: > On 07 May 2021, at 05:32, Christopher Stone > wrote: >> # Find files, concatenate their contents, send result to BBEdit. >> find -E . -type f \( ! -name ".*" \) -exec sed -n '1,$p' {} \; |

Re: Need help accessing multiple files' content at the same time

2021-05-07 Thread @lbutlr
On 07 May 2021, at 05:32, Christopher Stone wrote: > # Find files, concatenate their contents, send result to BBEdit. > find -E . -type f \( ! -name ".*" \) -exec sed -n '1,$p' {} \; | bbedit OK, two questions. 1) why -E? 2) '1,$p'? Where/what is $p? -- When men talk to their friends,

Re: Need help accessing multiple files' content at the same time

2021-05-07 Thread Christopher Stone
On 05/06/2021, at 10:06, Howard mailto:leadwithlo...@gmail.com>> wrote: > Patrick, your way of concatenating individual files works well. > > I have a folder that contains both folders whose contents I would like to > include in the concatenation as well as separate individual files. Is there a

Re: Need help accessing multiple files' content at the same time

2021-05-06 Thread Howard
Patrick, thanks for your help. On Thursday, 6 May 2021 at 12:23:08 pm UTC-4 Patrick Woolsey wrote: > OK, thanks and manual expansion & selection should suffice in > this case, though probably not the general. :-) > > (PS: I suggest you switch the selection dialog to "List" mode > rather than

Re: Need help accessing multiple files' content at the same time

2021-05-06 Thread Patrick Woolsey
OK, thanks and manual expansion & selection should suffice in this case, though probably not the general. :-) (PS: I suggest you switch the selection dialog to "List" mode rather than "Icon" or "Columns".) Regards Patrick Woolsey == Bare Bones Software, Inc.

Re: Need help accessing multiple files' content at the same time

2021-05-06 Thread Howard
It currently has 22 items, 20 of which are split between two folders. On Thursday, 6 May 2021 at 11:43:24 am UTC-4 Patrick Woolsey wrote: > On 5/6/21 at 11:06 AM, leadwi...@gmail.com (Howard) wrote: > > >Patrick, your way of catenating individual files works well. > > > >I have a folder that

Re: Need help accessing multiple files' content at the same time

2021-05-06 Thread Patrick Woolsey
On 5/6/21 at 11:06 AM, leadwithlo...@gmail.com (Howard) wrote: Patrick, your way of catenating individual files works well. I have a folder that contains both folders whose contents I would like to include in the catenation as well as separate individual files. Is there a way to do that in

Re: Need help accessing multiple files' content at the same time

2021-05-06 Thread Howard
Patrick, your way of catenating individual files works well. I have a folder that contains both folders whose contents I would like to include in the catenation as well as separate individual files. Is there a way to do that in BBEdit? Howard On Sunday, 2 May 2021 at 11:36:26 am UTC-4 Howard

Re: Need help accessing multiple files' content at the same time

2021-05-02 Thread Howard
Thanks Patrick. By catenating the files, it was easy to produce the results I needed. On Friday, 30 April 2021 at 10:05:27 am UTC-4 Patrick Woolsey wrote: > Per item 2. this sounds like a job for either the Text -> Apply Text > Transform command or a _text factory_ with a suitable 'Run Unix

Re: Need help accessing multiple files' content at the same time

2021-04-30 Thread face
hmm - in a shell like bash you would do something like for FILENAME in ls * do unixcommandline $FILENAME ; done It can get messier, but if all the files (and only the files) are in a directory this would be simplest. On Friday, April 30, 2021 at 7:05:27 AM UTC-7 Patrick Woolsey wrote: > Per

Re: Need help accessing multiple files' content at the same time

2021-04-30 Thread Patrick Woolsey
Per item 2. this sounds like a job for either the Text -> Apply Text Transform command or a _text factory_ with a suitable 'Run Unix Filter' action. Per item 1. you can catenate any selectable set of files into an existing document via the Edit -> Insert -> File Contents... command Regards,

Need help accessing multiple files' content at the same time

2021-04-30 Thread Howard
I have a folder on my Mac with multiple text files. I need to run the same Unix command line, which I have, on all of them. I would like to do all of them at the same time. Can I do either of the following using BBEdit (vers. 13.5.6)? 1. Combine all the files into one text file. 2. From