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-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.
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.