Joe Klemmer to [email protected] • 1 year agofind, grep, sed, and awkwilsonericn.wordpress.commessage-square22fedilinkarrow-up153arrow-down13file-text
arrow-up150arrow-down1external-linkfind, grep, sed, and awkwilsonericn.wordpress.comJoe Klemmer to [email protected] • 1 year agomessage-square22fedilinkfile-text
minus-squarepalordrolaplinkfedilink2•1 year agoIf you’re using find all the time, check to see if you have or can have some variant of locate installed. It indexes everything* on the system (* this is configurable) and can be queried with partial pathnames, even with regex, and it’s fast.
minus-square@SpaceNoodlelink1•1 year agoI use locate when I don’t know where the files are. Find has finer controls and can differentiate between regular files, links, directories, etc.
If you’re using
find
all the time, check to see if you have or can have some variant oflocate
installed. It indexes everything* on the system (* this is configurable) and can be queried with partial pathnames, even with regex, and it’s fast.I use locate when I don’t know where the files are. Find has finer controls and can differentiate between regular files, links, directories, etc.