Author Topic: Searching and/or sorting by variable camera model?  (Read 4796 times)

Offline Frank

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Frank Fitzpatrick Photography
Searching and/or sorting by variable camera model?
« on: March 20, 2020, 12:53:34 PM »
I am trying to sort out a large number of images that have been scanned using a Perfection 4870 scanner. The idea is to mark them as scanned imaged as opposed to digital images. All my scanned (transparency) images have a prefix T for Transparency but if I search for T in the file name it delivers TIF files which are often digital files as well as transparencies. I cannot figure out how to find filenames with T as a suffix without getting TIF files as well. So my solution was to find images that were scanned by my Perfection 4870 which in many cases has a variable name {model} = Perfection 4870.

I am sure that there is a way to do this but darned if I can figure it out.

Lastly, please be kind as I am not the most logical creature and my skills in computing are not so strong.

Thanks in advance folks. 

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: Searching and/or sorting by variable camera model?
« Reply #1 on: March 20, 2020, 03:36:52 PM »
You should be able to turn on 'Grep' and then search for:

^T

The circumflex (^) means match at the start of the line.  So it will only find items that start with a T.  Items that have a T somewhere else in the name won't match.

HTH,

-Kirk

Offline Soizic

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
Re: Searching and/or sorting by variable camera model?
« Reply #2 on: March 21, 2020, 12:16:18 AM »
I try with FID and SEARch, no results
Soizic (France)
MacBook Pro M1,Ventura, PM+ à jour, deepl translator

Offline Frank

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Frank Fitzpatrick Photography
Re: Searching and/or sorting by variable camera model?
« Reply #3 on: March 21, 2020, 12:39:04 AM »
Hello again Kirk

Turn on 'Grep'? Forgive my ignorance but you have lost me :-[

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: Searching and/or sorting by variable camera model?
« Reply #4 on: March 21, 2020, 11:47:59 AM »
Hello again Kirk

Turn on 'Grep'? Forgive my ignorance but you have lost me :-[

Please see the image below.  It will find items that have filenames that start with a 'T'.

HTH,

-Kirk

Offline Soizic

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
Re: Searching and/or sorting by variable camera model?
« Reply #5 on: March 21, 2020, 10:44:00 PM »
i have done that with no result (Mac mojave)
Soizic (France)
MacBook Pro M1,Ventura, PM+ à jour, deepl translator

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Searching and/or sorting by variable camera model?
« Reply #6 on: March 22, 2020, 12:44:39 AM »
i have done that with no result (Mac mojave)

What Kirk showed should work (does for me…).

Have you enabled the check boxes exactly as Kirk showed in the dialog? Also make sure you are actually searching a contact sheet that has files starting with the letter T…

Note that both the capital letter “T” and the lower case “t” will be matched. If you don't want that, check the box that says “Case Sensitive Search” (only “T” will then match).

Cheers,
Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Frank

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Frank Fitzpatrick Photography
Re: Searching and/or sorting by variable camera model?
« Reply #7 on: March 22, 2020, 01:25:47 AM »
Hi again Kirk

I found the grep tick box and it works very well. It has speeded up my work flow and is easy to use.

May I ask what other options there are in Grep other than the circumflex?

Thanks again for the support.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: Searching and/or sorting by variable camera model?
« Reply #8 on: March 22, 2020, 06:56:11 AM »
Hi again Kirk

I found the grep tick box and it works very well. It has speeded up my work flow and is easy to use.

May I ask what other options there are in Grep other than the circumflex?

Thanks again for the support.

This should get you started: https://www.gnu.org/software/grep/manual/grep.html#Regular-Expressions

This is a nice playground for experimentation that I like to use: https://regexr.com/
You can put your own sample text in it (for instance, some of your filenames, one on each line) and then experiment with the syntax.

HTH,

-Kirk

Offline Soizic

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
Re: Searching and/or sorting by variable camera model?
« Reply #9 on: March 23, 2020, 12:08:21 AM »
It works, I forgot 'grep', thanks.

What means "grep" ? unknown in my dico…
Soizic (France)
MacBook Pro M1,Ventura, PM+ à jour, deepl translator

Offline jwvaughn

  • Full Member
  • ***
  • Posts: 143
  • Retired programmer
    • View Profile
Re: Searching and/or sorting by variable camera model?
« Reply #10 on: March 23, 2020, 05:54:58 AM »
My recollection is "Global Regular Expression Print" which originally was a UNIX command but is rather generic anymore I think. Regular Expression has a very specific meaning in the computer science world but can be thought of as a formal way to express a language. It turns out to be useful for searching text among other things.

Jerry

Offline Soizic

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
Re: Searching and/or sorting by variable camera model?
« Reply #11 on: March 23, 2020, 11:43:09 PM »
Thanks Jwvaughn
Now I remember my old Unix !
Soizic (France)
MacBook Pro M1,Ventura, PM+ à jour, deepl translator

Offline Frank

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Frank Fitzpatrick Photography
Re: Searching and/or sorting by variable camera model?
« Reply #12 on: March 24, 2020, 12:42:43 AM »
Thanks Kirk that gives me something to experiment with while we are locked down in the UK.

Kind regards and stay well, Frank