From 1d1c961b502aff6777cad628307dca5d7eed1d4c Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 19 Mar 2017 10:49:58 +0100 Subject: [PATCH] updated README.md formating --- README.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6e398f8..baf3f1d 100644 --- a/README.md +++ b/README.md @@ -16,26 +16,33 @@ See adhocify --help. Examples: ========= adhocify -w /tmp/ /home/user/myscript.sh - * Watches for IN\_CLOSE\_WRITE events in /tmp/ and launches script /home/user/myscript.sh + + * Watches for IN\_CLOSE\_WRITE events in /tmp/ and launches script /home/user/myscript.sh adhocify -w /tmp/ /home/user/myscript.sh {} - * Same as above, but also passes the file an event occured on to that script.(argv[1]). + + * Same as above, but also passes the file an event occured on to that script.(argv[1]). adhocify -w /tmp/ /bin/echo the file {} was written to - * Running echo "Test" > /tmp/test will print in the shell adhocify was launched in: "the file /tmp/test was written to" + + * Running echo "Test" > /tmp/test will print in the shell adhocify was launched in: "the file /tmp/test was written to" adhocify -w /tmp/ -w /var/run /home/user/myscript.sh - * Same as above, but also watches /var/run + + * Same as above, but also watches /var/run adhocify /home/user/myscript.sh - * Watches for IN\_CLOSE\_WRITE events in the current directory, launches script + + * Watches for IN\_CLOSE\_WRITE events in the current directory, launches script /home/user/myscript. adhocify -m IN\_OPEN -w /tmp /home/user/myscript.sh - * Watches for IN\_OPEN events in /tmp/, launches script /home/user/myscript.sh + + * Watches for IN\_OPEN events in /tmp/, launches script /home/user/myscript.sh adhocify -w /tmp -i *.txt /home/user/myscript.sh - * Watches for IN\_CLOSE\_WRITE events in /tmp/ but will not pass *.txt files to the script + + * Watches for IN\_CLOSE\_WRITE events in /tmp/ but will not pass *.txt files to the script