Page 1 of 1
Search Every Program in a Project
Posted: Wed Jul 26, 2023 9:30 am
by C87
Hello, Is it possible to search every program in a project for a particular word without opening each in turn and pressing F3?
I presume there is but I cannot find the option selection. I've searched the topics using Find, Search and a range of search guesses without success.
I did find a request for search & replace in the Feature Requests & Wishlists but that was back in 2010 but nothing else.
Re: Search Every Program in a Project
Posted: Wed Jul 26, 2023 10:50 am
by Caronte3D
Ctrl+Shift+F ?
Re: Search Every Program in a Project
Posted: Wed Jul 26, 2023 11:25 am
by mk-soft
Menu -> Edit -> Find in Files ...
Re: Search Every Program in a Project
Posted: Wed Jul 26, 2023 4:30 pm
by C87
Many thanks to Caronte3D and mk-soft.
Using those reminds me of a utility called GREP that I used many years ago. Back in the dark days of MS-DOS & CP/M
I also had a utility called TOUCH that reset a file date to a date required. Happy days.
Re: Search Every Program in a Project
Posted: Wed Jul 26, 2023 8:54 pm
by Caronte3D
C87 wrote: Wed Jul 26, 2023 4:30 pm
... CP/M
What times

only us old coders know what it is

Re: Search Every Program in a Project
Posted: Wed Jul 26, 2023 9:23 pm
by Marc56us
Using those reminds me of a utility called GREP that I used many years ago. Back in the dark days of MS-DOS & CP/M
Not as powerful as Grep,
FindStr (an enhancement of Find) does interesting things on Windows (provided natively since Windows 2000).
Ex: Find all PB source code containing MessageRequester in all subdirectories, case insensitive.
Code: Select all
C:\Dev_PB> findstr /s /i "messagerequester" *.pb
Very fast.
Almost all DOS commands and some unix commands have been transferred to Windows.
Not to mention everything you can do with WSL

Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 7:25 am
by C87
A bit more nostalgia.
In 1983 I started with a Sirius with two MASSIVE* 1.2Mb floppy disks and 128Kb of Ram. All at the bargain price I recall of somewhere around £2,300! ( Just to give some perspective, I could buy a one year old Ford Cortina for about double that, but way cheaper than an Apple II) Filenames and fieldnames at a maximum of eight and only a root folder available on A:, or B: No spaces and I think they all had to be uppercase as well in dBASE. Screens of just 80 characters wide and 24 lines and needing a table of dozens of printer codes. All good fun but the hours were often long.
* At the time the IBM PC only had 360Kb floppy drives
Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 8:47 am
by C87
Marc56us,
C:\Dev_PB> findstr /s /i "messagerequester" *.pb
This is brilliant. I'll still use DOS commands, particularly dir whatever /s to find obscure or forgotten filenames. But I'd never come across findstr before and it's not in my DOS manual. But just located it from HELP findstr
The biggest selling book of the 1980s that was never actually read.........the MS-DOS Manual

Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 1:56 pm
by Tenaja
C87 wrote: Thu Jul 27, 2023 7:25 am
* At the time the IBM PC only had 360Mb floppy drives
Typo? Shouldn't that be 360KB?
Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 2:03 pm
by C87
Correct Tenaja! I've altered it now.
I didn't notice that before I clicked [Submit]. MInd you not often you type Kb these days. Well unless you're talking about a PureBasic program of course, then they are all in Kbs. But never with most other stuff.
Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 2:15 pm
by Tenaja
C87 wrote: Thu Jul 27, 2023 2:03 pm
Correct Tenaja! I've altered it now.
I didn't notice that before I clicked [Submit]. MInd you not often you type Kb these days. Well unless you're talking about a PureBasic program of course, then they are all in Kbs. But never with most other stuff.
No, not often. My first drive capacity was 140KB...
Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 2:24 pm
by mk-soft
Tenaja wrote: Thu Jul 27, 2023 1:56 pm
C87 wrote: Thu Jul 27, 2023 7:25 am
* At the time the IBM PC only had 360Mb floppy drives
Typo? Shouldn't that be 360KB?
And if you had the punch for the 5 1/4 discs, you could write 720 kb.

Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 3:35 pm
by Gérard
Hello,
You can use Notepad++
Menu Search/Find in Files...

Gérard
Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 3:50 pm
by Gérard
You can also use
Everything

Gérard
Re: Search Every Program in a Project
Posted: Thu Jul 27, 2023 6:09 pm
by AZJIO