irelephant [he/him]@lemmy.dbzer0.com to Asklemmy@lemmy.mlEnglish · 2 months agoWhat's the laziest thing you have done?message-squaremessage-square121linkfedilinkarrow-up1194arrow-down12file-text
arrow-up1192arrow-down1message-squareWhat's the laziest thing you have done?irelephant [he/him]@lemmy.dbzer0.com to Asklemmy@lemmy.mlEnglish · 2 months agomessage-square121linkfedilinkfile-text
minus-squaredosse91@lemmy.trippy.pizzalinkfedilinkarrow-up6arrow-down3·2 months agoUsing a state of the art local LLM and an agent to ask it to find all files with a certain extension, because I always forget how to use the find command on linux and I can’t be bothered to read it.
minus-squareschipelblorp@sh.itjust.workslinkfedilinkarrow-up2·2 months agoThat would work for a single directory. Most file managers have a global search.
minus-squaredosse91@lemmy.trippy.pizzalinkfedilinkarrow-up2·2 months agoNo that would be just in the current folder, I needed to search recursively
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up1·2 months agofind -name “*.txt” Iirc. Though it might want a regular expression instead of a wildcard.
minus-squareHexarei@beehaw.orglinkfedilinkarrow-up2·2 months agoI did that kind of thing once, had Qwen-3.5-122B as a fancy find-and-replace because I couldn’t be arsed to write a find and pipe it to sed
minus-squareHiddenLayer555@lemmy.mllinkfedilinkEnglisharrow-up2·2 months agoHow are you getting a local LLM to read files for you?
minus-squaredosse91@lemmy.trippy.pizzalinkfedilinkarrow-up3·2 months agoTake a look at pi.dev (or similar tools)
Using a state of the art local LLM and an agent to ask it to find all files with a certain extension, because I always forget how to use the find command on linux and I can’t be bothered to read it.
ls *.txt?That would work for a single directory.
Most file managers have a global search.
ls -R *.txt?No that would be just in the current folder, I needed to search recursively
find -name “*.txt”
Iirc. Though it might want a regular expression instead of a wildcard.
I did that kind of thing once, had Qwen-3.5-122B as a fancy find-and-replace because I couldn’t be arsed to write a find and pipe it to sed
How are you getting a local LLM to read files for you?
Take a look at pi.dev (or similar tools)