shelltools

package module
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2017 License: BSD-3-Clause Imports: 0 Imported by: 0

README

Go Report Card License

shelltools

Various utilities for simplifying work on the command line.

  • csvcols - converts commandline parameters into a CSV encoded row written to standard out
  • findfile - find files based on prefix, suffix or contained string
  • finddir - find directories based on prefix, suffix or contained string
  • mergepath - prefix, append, clip path variables
  • pathparts - split a path into parts
  • range - emit a range of integers (useful for numbered loops in Bash)
  • reldate - display a relative date in YYYY-MM-DD format
  • timefmt - format a time value based on Golang's time format language
  • urlparse - split a URL into parts

Compiled versions are provided for Linux (amd64), Mac OS X (amd64), Windows 10 (amd64) and Raspbian (ARM6, ARM7). See https://github.com/rsdoiel/shelltools.

Use the utilities try "-help" option for a full list of options.

Installation

shelltools is go get-able.

    go get github.com/rsdoiel/shelltools/...

Or see INSTALL.md for details for installing compiled versions of the programs.

Documentation

Index

Constants

View Source
const (
	Version = "v0.0.13"

	LicenseText = `` /* 1485-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmds
csvcols
csvcols - is a command line that takes each argument in order and outputs a line in CSV format.
csvcols - is a command line that takes each argument in order and outputs a line in CSV format.
finddir
finddir.go - a simple directory tree walker that looks for directories by name, basename or extension.
finddir.go - a simple directory tree walker that looks for directories by name, basename or extension.
findfile
findfile.go - a simple directory tree walker that looks for files by name, basename or extension.
findfile.go - a simple directory tree walker that looks for files by name, basename or extension.
mergepath
* * mergepath.go - merge the path variable to avoid duplicates * * @author R. S. Doiel, <rsdoiel@gmail.com> * copyright (c) 2014 All rights reserved.
* * mergepath.go - merge the path variable to avoid duplicates * * @author R. S. Doiel, <rsdoiel@gmail.com> * copyright (c) 2014 All rights reserved.
pathparts
pathparts.go - extracts elements of a file path @author R. S. Doiel, <rsdoiel@gmail.com> Copyright (c) 2016, R. S. Doiel All rights reserved.
pathparts.go - extracts elements of a file path @author R. S. Doiel, <rsdoiel@gmail.com> Copyright (c) 2016, R. S. Doiel All rights reserved.
range
* * range.go - emit a list of integers separated by spaces starting from * first command line parameter to last command line parameter.
* * range.go - emit a list of integers separated by spaces starting from * first command line parameter to last command line parameter.
reldate
* * Generates a date in YYYY-MM-DD format based on a relative time * description (e.g.
* * Generates a date in YYYY-MM-DD format based on a relative time * description (e.g.
timefmt
datefmt formats a date based on the formatting options available with Golang's Time.Format Copyright (c) 2016, R. S. Doiel All rights reserved.
datefmt formats a date based on the formatting options available with Golang's Time.Format Copyright (c) 2016, R. S. Doiel All rights reserved.
urlparse
* * urlparse.go - a URL Parser library for use in Bash scripts.
* * urlparse.go - a URL Parser library for use in Bash scripts.
Package reldate generates a date in YYYY-MM-DD format based on a relative time description (e.g.
Package reldate generates a date in YYYY-MM-DD format based on a relative time description (e.g.
timefmt provides additional common formats found around the web that are missing from Golang's own time package.
timefmt provides additional common formats found around the web that are missing from Golang's own time package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL