PF(1): print files
USAGE
usage: pf [-DWadfhilnpsuw] [-o arg] {file}
-D: debug
-W: writeall file data back to disk (-d implied)
-a: print addresses
-d: no not print file data
-f: no not print dir data
-h: serve the output as a page sent to ink
-i: print also ignored data
-l: long list for dirs
-n: print just names
-o: write destination path
-p: print just paths
-s: separate messages, print each message in its own line.
-u: don't use unix out
-w: write file data back to disk (-d implied)
DESCRIPTION
Pf prints files. Usually the files come from the standard input as a result of a, perhaps filtered,lf
command.
As intro(1) says, the input in Clive includes directory entries, raw data, and other data types (ignored by convention). This command is used as the last command in many pipe-lines to print the result of the processing or to write the resulting files back to disk.
EXAMPLES
List files in the home directory:
; lf $home,1 | pf
/zx/usr/nemo
/zx/usr/nemo/acme
/zx/usr/nemo/bin
...
List Go files and their contents:
; lf -g ,~go$ | pf
Rewrite all files with their first three lines:
; lg -g , | lns -r ,3 | pf -w
The same, but write them under /tmp
:
; lg -g , | lns -r ,3 | pf -w -o /tmp
There are more examples in lf(1) and other manual pages.
SOURCE
/zx/sys/src/clive/cmd/pf
SEE ALSO
- lf(1), list files.