Master·Read and process text
find: Find paths by name or type
Syntax
find [starting point] [condition]Options
-name- File name wildcard
-type- Type f/d/l
-maxdepth- Maximum number of layers
-print- Output path
-delete- Delete matching path
Examples
find . -name "*.log"Usage and sandbox support
Quote wildcards to avoid being expanded with Shell first. -delete should be previewed with -print before actual execution.
Hands-on exercises
Related commands
catRead and concatenate textlessRead text in pagesmoreView text in pagesheadRead the first few linestailRead last few linesgrepFilter text by patternwcCount lines, words and bytessortSort lines of textuniqMerge adjacent duplicate rowscutExtract columns or characterstrReplace or delete characterssedReplace text or select linesawkExtract structured text fieldsdiffCompare two text filesvimEdit files in terminalnanoModify files with a simple editornlNumber lines of texttacOutput lines of text in reverse orderrevReverse characters line by linepasteSplicing text columns horizontallycommCompare sorted listscmpCompare files to see if they are the sameexpandConvert Tab to spacesunexpandConvert leading spaces to TabfoldWrap long textrgFast recursive text searchjqHandle JSONyqHandle YAMLjoinMerge sorted tables by common fieldsfmtReformat paragraphs word by wordcolumnArrange text tablestringsExtract printable text from binaryodView file byte representationhexdumpShow hexadecimal bytesxxdView or restore hex dumpiconvConvert text encodingdos2unixConvert Windows to newlinesplitSplit file by linescsplitSplit text by patternbcEvaluate a numeric expression