locate
is a command I’ve used in the past, but now, fresh installed with sudo apt get locate
it doesn return anything.
locate --version
returns
locate (GNU findutils) 4.10.0
, from 2024
or, have I forgotten something?
locate
is a command I’ve used in the past, but now, fresh installed with sudo apt get locate
it doesn return anything.
locate --version
returns
locate (GNU findutils) 4.10.0
, from 2024
or, have I forgotten something?
Have you tried RTFM? :P
Jokes aside afaik you could do everything you mentioned with sort, find (with -type f, -printf and -mtime) and grep (filtering via regex with the -e flag).
Alternatively you could try KDE’s file explorer dolphin (or even just its search utility kfind) as a graphical alternative.
My point is switching to linux is not quick or easy, but there are few really impassable roadblocks (games with shitty kernel level anticheat for example) and there is a high likelyhood someone in this community has encountered your problems aswell and migjt even know a solution.
using find to sort all pictures in /pics/ by inverted (i.e., most recently accessed first) access time, and filtering only those with an exposure time between 1/20 and 1/100 seconds
find /pics/ -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) \ -exec exiftool -ExposureTime -T {} \; -exec bash -c ' file="$1" exposure="$2" # Convert exposure to decimal if [[ "$exposure" =~ ^([0-9]+)/([0-9]+)$ ]]; then num="${BASH_REMATCH[1]}" denom="${BASH_REMATCH[2]}" exposure_val=$(echo "$num / $denom" | bc -l) else exposure_val="$exposure" fi # Filter by exposure between 1/100 and 1/20 seconds if (( $(echo "$exposure_val >= 0.01" | bc -l) )) && (( $(echo "$exposure_val <= 0.05" | bc -l) )); then atime=$(stat -c %X "$file") # Access time (epoch) echo "$atime $file" fi ' bash {} $(exiftool -s3 -ExposureTime {}) | sort -nr
In voidtools everything it would be
pic: path:"C:\pics" sort:da-descending ExposureTime:1/20..1/100
But actually doesn’t work because “ExposureTime” is only available as an sorting order not a filter but you get the gist ;)
Ah yeah okay, I see, that would be quite tedious to implement in bash. Everything looks pretty neat. :D
Buuut I just looked at KDE’s search framework filter options (used by dolphin if you press <crtl> + f ) and it seems it is indeed possible to search/filter by exposure time with dolphin or via directly in the cli.
I have to try this !
Nemo, Cinnamon’s file manager, also has great built-in search. I almost never feel the need to open up Catfish.
Yeah, i like nemo a lot, i use it on my main machine when i need a gui, because it has not as many dependencies as dolphin. And it does not feel as “bloated” as dolphin. It does one thing (be a file explorer) and does well. :)