aboutsummaryrefslogtreecommitdiff
path: root/watch.1
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-22 11:26:23 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-22 11:30:09 +0200
commit46345060aa9414aad838acad2af11176fa094891 (patch)
tree38d9e86cb16102fd1b04aa34be3d959546c99076 /watch.1
parent94f90dc4f48ee7f6bc1aa3a1116f20b714df89c9 (diff)
downloadwhen-46345060aa9414aad838acad2af11176fa094891.tar.gz
Rename to when
This is to resolve the name conflict with another program called watch, which is for watching command output.
Diffstat (limited to 'watch.1')
-rw-r--r--watch.151
1 files changed, 0 insertions, 51 deletions
diff --git a/watch.1 b/watch.1
deleted file mode 100644
index a609547..0000000
--- a/watch.1
+++ /dev/null
@@ -1,51 +0,0 @@
-.Dd $Mdocdate$
-.Dt WATCH 1
-.Os
-.Sh NAME
-.Nm watch
-.Nd a simple file watcher
-.
-.Sh SYNPOSIS
-.Nm watch
-.Op Fl i
-.Ar file ...
-.
-.Sh DESCRIPTION
-.Pp
-.Nm watch
-is a simple program that watches any given
-.Ar file
-for changes.
-When the file changes, its name (as specified in the arguments to
-.Nm watch )
-is printed on standard output.
-.Pp
-If the
-.Fl i
-argument is provided, an initial such line is printed when the program
-starts, before beginning to watch for changes.
-.
-.Sh ERRORS
-.Pp
-If one of the watched files is deleted, a message is printed on standard
-error and the program exits with error code 1.
-.Pp
-If a file is renamed, a notice is printed on standard error, but the
-program keeps running.
-.\"
-.Sh EXAMPLES
-.Bd -literal -offset indent
-$ watch *.ms | while read file; do
- make ${file%.ms}.pdf && kill -9 mupdf
-done
-.Ed
-.Bd -literal -offset indent
-$ alias each='xargs -L0 -I {}'
-$ watch -i * | each cp {} /mnt/usb/
-.Ed
-.
-.Sh AUTHORS
-.Pp
-.Nm watch
-is written by
-.An John Ankarström Aq Mt "john (at) ankarstrom.se" .