toys

Tools and things that make my life easier - y'all might like them too

View the Project on GitHub pfuntner/toys

extensions

Purpose

Print extensions of file names. For each file, a line is printed in the following form:

Original filename|extension

Syntax

Syntax: extensions [FILE ...]

Options and arguments

There are no options. One or more file names must be specified as arguments.

Example

$ find . -type f | extensions | headtail
       1 ./pinger-20180215.out.gz|gz
       2 ./pinger-20180325.out.gz|gz
       3 ./pinger-20180304.out.gz|gz
       4 ./pinger-20180302.out.gz|gz
       5 ./pingbeep|
         .
         .
         .
     269 ./pinger-20180109.out.gz|gz
     270 ./pinger-20180419.out|out
     271 ./pinger-20180130.out.gz|gz
     272 ./pinger-20180201.out.gz|gz
     273 ./pingplot|
$

Example notes

Notes