User's manual. Section 1.

LF(1): list files


USAGE

        usage: lf [-Dgu] {file}
            -D: debug
            -g: get contents
            -u: unix IO
        

DESCRIPTION

Lf lists files into standard output. This means that lf sends their directory entries to the standard output channel. Under flag -g it sends not just the file metadata, but also the file data. Further commands in the command line pipe-line may be used to actually print the listed files in the desired format, or to apply any other operation to them.

EXAMPLES

List files in the home directory:

        ; lf $home,1 | pf
        /zx/usr/nemo
        /zx/usr/nemo/acme
        /zx/usr/nemo/bin
        ...
        

Or

        ; lf -u $home,1
        

Long listing:

        ; lf | pf -l
        

Copy all files at /tmp:

        ; lf -g , | pf -o /tmp -w
        

List all files with names ending in .go at the tree where we are:

        lf -u ,~*.go
        

List all files in /bin or /cin with names starting with zx:

        lf '/,path~/[bc]in/zx*' | pf
        

SOURCE

  • /zx/sys/src/clive/cmd/lf

SEE ALSO

  • pf(1), print files from input


User's manual. Section 1.