pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

searching for pharo code on disk

SB
Siemen Baader
Tue, Mar 21, 2023 3:54 PM

Hi,

I'm looking for some code I wrote maybe 7 years ago. A web scraper that
collected data from a specific web shop. It must be somewhere in my home
dir in an image, perhaps Pharo 4.0, or in .mcz files stored by Monticello.
What would be a good way to search for it? I tried

grep -r --include \*.changes "server-url.com" ~

(I also asked ChatGPT as per the previous discussion on this list, and it
tries its best to teach me about grep and sound very convincing while
providing me with arguments that grep can't evaluate :))

with no luck so far.

Any ideas?

Thanks,
Siemen

Hi, I'm looking for some code I wrote maybe 7 years ago. A web scraper that collected data from a specific web shop. It must be somewhere in my home dir in an image, perhaps Pharo 4.0, or in .mcz files stored by Monticello. What would be a good way to search for it? I tried `grep -r --include \*.changes "server-url.com" ~` (I also asked ChatGPT as per the previous discussion on this list, and it tries its best to teach me about grep and sound very convincing while providing me with arguments that grep can't evaluate :)) with no luck so far. Any ideas? Thanks, Siemen
YC
Yanni Chiu
Tue, Mar 21, 2023 4:41 PM

May have some syntax wrong, but something like:
find . -name *.changes -exec “grep -i webscrap “

Check the manpage of find command for exec examples. The -i on grep ignores
uppercase/lowercase differences. HTH

On Tue, Mar 21, 2023 at 11:55 AM Siemen Baader siemenbaader@gmail.com
wrote:

Hi,

I'm looking for some code I wrote maybe 7 years ago. A web scraper that
collected data from a specific web shop. It must be somewhere in my home
dir in an image, perhaps Pharo 4.0, or in .mcz files stored by Monticello.
What would be a good way to search for it? I tried

grep -r --include \*.changes "server-url.com" ~

(I also asked ChatGPT as per the previous discussion on this list, and it
tries its best to teach me about grep and sound very convincing while
providing me with arguments that grep can't evaluate :))

with no luck so far.

Any ideas?

Thanks,
Siemen

May have some syntax wrong, but something like: find . -name *.changes -exec “grep -i webscrap “ Check the manpage of find command for exec examples. The -i on grep ignores uppercase/lowercase differences. HTH On Tue, Mar 21, 2023 at 11:55 AM Siemen Baader <siemenbaader@gmail.com> wrote: > Hi, > > I'm looking for some code I wrote maybe 7 years ago. A web scraper that > collected data from a specific web shop. It must be somewhere in my home > dir in an image, perhaps Pharo 4.0, or in .mcz files stored by Monticello. > What would be a good way to search for it? I tried > > `grep -r --include \*.changes "server-url.com" ~` > > (I also asked ChatGPT as per the previous discussion on this list, and it > tries its best to teach me about grep and sound very convincing while > providing me with arguments that grep can't evaluate :)) > > > with no luck so far. > > Any ideas? > > Thanks, > Siemen >
GC
Gabriel Cotelli
Tue, Mar 21, 2023 4:43 PM

Monticello files AFAIR are zip files. So maybe you can extract them and run
grep against the content

On Tue, Mar 21, 2023, 12:55 Siemen Baader siemenbaader@gmail.com wrote:

Hi,

I'm looking for some code I wrote maybe 7 years ago. A web scraper that
collected data from a specific web shop. It must be somewhere in my home
dir in an image, perhaps Pharo 4.0, or in .mcz files stored by Monticello.
What would be a good way to search for it? I tried

grep -r --include \*.changes "server-url.com" ~

(I also asked ChatGPT as per the previous discussion on this list, and it
tries its best to teach me about grep and sound very convincing while
providing me with arguments that grep can't evaluate :))

with no luck so far.

Any ideas?

Thanks,
Siemen

Monticello files AFAIR are zip files. So maybe you can extract them and run grep against the content On Tue, Mar 21, 2023, 12:55 Siemen Baader <siemenbaader@gmail.com> wrote: > Hi, > > I'm looking for some code I wrote maybe 7 years ago. A web scraper that > collected data from a specific web shop. It must be somewhere in my home > dir in an image, perhaps Pharo 4.0, or in .mcz files stored by Monticello. > What would be a good way to search for it? I tried > > `grep -r --include \*.changes "server-url.com" ~` > > (I also asked ChatGPT as per the previous discussion on this list, and it > tries its best to teach me about grep and sound very convincing while > providing me with arguments that grep can't evaluate :)) > > > with no luck so far. > > Any ideas? > > Thanks, > Siemen >