Skip to content

peturingi/crfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NAME
    crfs - count regular-file suffixes

SYNOPSIS
    crfs [-h]
    crfs directory
    
DESCRIPTION
    This utility recursively scans the specified directory and counts the occurrences
    of each file suffix (the part of the filename after the last dot). It ignores
    directories and only counts regular files. The output is sorted by the count of
    files for each suffix in ascending order.
    
OPTIONS
    -h
        Show help and exit.
        
OPERANDS
    directory
        Directory to scan for file suffixes
  
STDIN
    None
    
INPUT FILES
    None
    
ENVIRONMENT VARIABLES
    None
    
ASYNCHRONOUS EVENTS
    Default
    
STDOUT
    For each file suffix found in the directory tree, output a line with the suffix
    and the count of files with that suffix, sorted by count in ascending order.
    Files without a suffix are counted under "(no extension)".
    
STDERR
    Error messages if the directory cannot be accessed.
    
OUTPUT FILES
    None
    
EXTENDED DESCRIPTION            
    [email protected] ~ % crfs /path/to/directory
    (no extension): 34
    .jpg: 216
    .md: 289
    .svg: 677
    .png: 1600
    .txt: 2408
    .pb: 2446
    .textproto: 2467
    .html: 2655
    .ttf: 3817
        
EXIT STATUS
    The following exit values can be returned:
    0 Successful completion.
    >0 An error occurred.
        
CONSEQUENCES OF ERRORS
    Default.

About

Count regular-file suffixes in a directory tree.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages