From 9c071cf6a24bd890eab9d4746cf40b73f7110aba Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sun, 11 Jul 2021 10:22:19 +1000 Subject: [PATCH] Update readme --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b54ee20..0f30ed5 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ Script to manage custom./etc/services entries. # Usage - # Show usage +Show usage + rpearce@crom:serv$ ./serv.sh -h usage: ./serv.sh [OPTIONS] command [command_args] @@ -15,11 +16,13 @@ Script to manage custom./etc/services entries. -w Update system services file (/etc/services) -y Same as -w - # Create working area in ~/.serv/ +Create working area in ~/.serv/ + rpearce@crom:serv$ ./serv.sh init Initialisation of /Users/rpearce/.serv complete. - # Add a custom service +Add a custom service + rpearce@crom:serv$ ./serv.sh add myservice 34777/udp Added 'myservice' (34777/udp) to custom services file. @@ -30,12 +33,14 @@ Script to manage custom./etc/services entries. > # custom services from serv.sh > myservice 34777/udp - # Look up a custom service +Look up a custom service + rpearce@crom:serv$ ./serv.sh query myservice Found in custom services file: myservice 34777/udp - # Update system /etc/services with custom services +Update system /etc/services with custom services + rpearce@crom:serv$ ./serv.sh -w sync (using sudo - you may be prompted for your password) @@ -54,7 +59,8 @@ Script to manage custom./etc/services entries. myservice 34777/udp rpearce@crom:serv$ - # Remove a custom service, and also update /etc/services +Remove a custom service, and also update /etc/services + rpearce@crom:serv$ ./serv.sh -w rm myservice Removed 'myservice' from custom services file (1 line).