irelephant [he/him]@lemmy.dbzer0.com to Asklemmy@lemmy.mlEnglish · 1 month agoWhat's the laziest thing you have done?message-squaremessage-square120linkfedilinkarrow-up1198arrow-down12file-text
arrow-up1196arrow-down1message-squareWhat's the laziest thing you have done?irelephant [he/him]@lemmy.dbzer0.com to Asklemmy@lemmy.mlEnglish · 1 month agomessage-square120linkfedilinkfile-text
minus-squaredosse91@lemmy.trippy.pizzalinkfedilinkarrow-up7arrow-down3·1 month 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-up3·1 month agoThat would work for a single directory. Most file managers have a global search.
minus-squaredosse91@lemmy.trippy.pizzalinkfedilinkarrow-up2·30 days agoNo that would be just in the current folder, I needed to search recursively
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up1·29 days agofind -name “*.txt” Iirc. Though it might want a regular expression instead of a wildcard.
minus-squareHiddenLayer555@lemmy.mllinkfedilinkEnglisharrow-up2·30 days agoHow are you getting a local LLM to read files for you?
minus-squaredosse91@lemmy.trippy.pizzalinkfedilinkarrow-up3·30 days agoTake a look at pi.dev (or similar tools)
minus-squareHexarei@beehaw.orglinkfedilinkarrow-up2·30 days 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
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.
How are you getting a local LLM to read files for you?
Take a look at pi.dev (or similar tools)
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