From: Ian Kelling Date: Mon, 15 Aug 2016 06:21:01 +0000 (-0700) Subject: add readme X-Git-Url: https://iankelling.org/git/?p=cedit;a=commitdiff_plain;h=6f89fb66315647b6421e44abe5a49789efc9dbdc;ds=sidebyside add readme --- diff --git a/README b/README new file mode 100644 index 0000000..279bfe3 --- /dev/null +++ b/README @@ -0,0 +1,8 @@ +The main documentation is availiable via --help and near the top of the +bash script file next to this file. + +The script file can be stripped of the last line and used as a function +instead of a script. + +Please email me if you have a patches, bugs, feedback, or republish this +somewhere else: Ian Kelling . diff --git a/cedit b/cedit index d04f587..7fbf743 100755 --- a/cedit +++ b/cedit @@ -15,10 +15,11 @@ cedit() { local help="Usage: [-h|--help ] [-v] [SECTION_NAME] FILE -Create/edit a #comment delimited section of a file +Create/modify a section in a config file -Reads STDIN for the contents of the section. Without SECTION_NAME, it -acts on a global unnamed section. cedit is short for config edit. +The section is #comment delimited. Reads STDIN for the contents of the +section. Without SECTION_NAME, it acts on a global unnamed +section. cedit is short for config edit. -v Verbose -h|--help Help"