shelltools

package module
v0.0.14 Latest Latest
Warning

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

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

README

shelltools

Various utilities for simplifying work on the command line.

  • 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
  • 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/caltechlibrary/shelltools.

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

Installation

shelltools is go get-able.

    go get github.com/caltechlibrary/shelltools/...

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

Documentation

Index

Constants

View Source
const (
	Version = "v0.0.14"

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

)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmds
finddir command
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 command
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 command
mergepath.go - merge the path variable to avoid duplicates @Author R. S. Doiel, <rsdoiel@caltech.edu> Copyright (c) 2017, Caltech All rights not granted herein are expressly reserved by Caltech.
mergepath.go - merge the path variable to avoid duplicates @Author R. S. Doiel, <rsdoiel@caltech.edu> Copyright (c) 2017, Caltech All rights not granted herein are expressly reserved by Caltech.
range command
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 command
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 command
datefmt formats a date based on the formatting options available with Golang's Time.Format @Author R. S. Doiel, <rsdoiel@caltech.edu> Copyright (c) 2017, Caltech All rights not granted herein are expressly reserved by Caltech.
datefmt formats a date based on the formatting options available with Golang's Time.Format @Author R. S. Doiel, <rsdoiel@caltech.edu> Copyright (c) 2017, Caltech All rights not granted herein are expressly reserved by Caltech.
urlparse command
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