Skip to content

SixArm.com » Unix » shell scripts for command line programs in sh, bash, etc.

Notifications You must be signed in to change notification settings

SixArm/sixarm_unix_shell_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

edd4b3e · Apr 14, 2025
Aug 29, 2017
Apr 14, 2025
Mar 23, 2018
Sep 15, 2023
Aug 29, 2017
Jul 21, 2018
Jun 26, 2015
Oct 15, 2021
Jul 20, 2019
Oct 16, 2020
Feb 26, 2018
Dec 1, 2018
Aug 29, 2017
Jan 15, 2016
Feb 2, 2013
Jan 15, 2016
Jan 15, 2016
Apr 14, 2019
Oct 29, 2015
Jan 15, 2016
Sep 29, 2014
Jan 15, 2016
Sep 4, 2017
Sep 6, 2017
Jan 15, 2016
Feb 7, 2018
Jan 15, 2016
Dec 8, 2019
Jan 15, 2016
Jan 26, 2015
Sep 29, 2014
Mar 13, 2016
Jan 15, 2016
Jan 15, 2016
Feb 10, 2020
Jul 6, 2021
Dec 22, 2015
Apr 12, 2015
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jul 25, 2018
Jan 15, 2016
Jan 15, 2016
Jan 28, 2016
Feb 9, 2016
Jan 15, 2016
Jan 15, 2016
Sep 29, 2014
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Aug 29, 2017
Jun 14, 2012
Jan 15, 2016
Dec 22, 2015
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Dec 22, 2015
Oct 31, 2011
Feb 1, 2014
Oct 16, 2020
Apr 14, 2019
Jan 15, 2020
Jan 26, 2015
Dec 19, 2017
Jan 15, 2016
Mar 13, 2016
Nov 26, 2016
Jan 15, 2016
Jan 15, 2016
Sep 6, 2017
Jan 26, 2015
Jan 26, 2015
Feb 9, 2016
Jan 26, 2015
Jan 24, 2020
Jan 26, 2015
Jan 26, 2015
Jan 26, 2015
Jul 23, 2018
Jul 23, 2018
Feb 9, 2016
Feb 6, 2011
Feb 6, 2011
Feb 6, 2011
Feb 6, 2011
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jul 13, 2015
Feb 17, 2017
Feb 17, 2017
Jun 11, 2015
Jun 11, 2015
May 27, 2012
Jan 15, 2016
Jan 15, 2016
Apr 20, 2012
Aug 29, 2017
Apr 25, 2016
Sep 29, 2014
Sep 29, 2014
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Apr 10, 2018
Apr 10, 2018
Jan 15, 2016
Jan 15, 2016
Oct 8, 2014
May 22, 2018
Jan 15, 2016
Jan 15, 2016
Aug 29, 2017
Jan 15, 2016
Jun 28, 2022
Feb 26, 2018
Feb 26, 2018
Sep 15, 2017
Oct 31, 2012
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Aug 29, 2017
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 9, 2017
Jan 15, 2016
Jan 15, 2016
Feb 15, 2016
Oct 16, 2020
Oct 16, 2020
Jan 12, 2018
Jul 2, 2021
Sep 2, 2021
Jan 15, 2016
Jan 15, 2016
May 21, 2010
Aug 29, 2017
Nov 5, 2018
Sep 1, 2016
Sep 2, 2012
Dec 7, 2019
Apr 5, 2017
Jan 15, 2016
Apr 23, 2014
Aug 29, 2017
Jan 15, 2016
Dec 8, 2019
Dec 12, 2016
Jan 15, 2016
Jan 31, 2013
Jan 15, 2016
Dec 17, 2013
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Sep 29, 2014
Sep 29, 2014
Apr 14, 2019
May 3, 2019
Aug 29, 2017
Dec 12, 2024
Aug 11, 2013
Mar 28, 2015
Sep 29, 2014
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Aug 12, 2019
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
May 21, 2010
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Apr 14, 2019
Jan 15, 2016
Jan 15, 2016
Jan 12, 2018
Jan 12, 2018
Jan 15, 2016
Oct 25, 2012
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 26, 2015
Mar 26, 2015
Aug 29, 2017
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Aug 29, 2017
Jan 15, 2016
Sep 6, 2016
Mar 5, 2011
Jan 15, 2016
Jan 15, 2016
Aug 29, 2017
Jan 15, 2016
Dec 9, 2024
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Sep 4, 2017
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 25, 2015
Sep 2, 2021
Feb 16, 2018
Jun 26, 2019
Jan 15, 2016
Sep 6, 2017
Sep 6, 2017
Jan 15, 2016
Jan 29, 2020
Dec 7, 2018
Jan 15, 2016
Aug 24, 2019
Aug 29, 2017
Sep 4, 2017
Jan 25, 2015
Sep 29, 2014
Mar 31, 2022
Aug 31, 2018
Jan 12, 2018
Jan 15, 2016
Jul 17, 2021
Feb 10, 2016
May 4, 2021
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jul 18, 2019
Jul 9, 2019
Jul 18, 2019
Mar 28, 2012
Aug 29, 2017
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Dec 8, 2019
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Aug 12, 2019
Sep 29, 2014
Jan 15, 2016
Jan 15, 2016
Sep 2, 2021
Nov 26, 2016
Jan 29, 2017
Jan 29, 2017
Jan 29, 2017
Sep 29, 2014
Jan 15, 2016
Jan 15, 2016
Dec 4, 2018
Jan 15, 2016
Jan 15, 2016
Sep 29, 2014
Jan 15, 2016
Jan 15, 2016
Nov 26, 2016
Nov 26, 2016
Aug 29, 2017
Aug 29, 2017
Jan 15, 2016
Jan 15, 2016
Feb 10, 2020
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
May 22, 2018
Jan 15, 2016
Jan 15, 2016
Oct 16, 2020
Aug 24, 2019
Jan 15, 2016
Apr 23, 2014
Jan 15, 2016
Jan 15, 2016
May 15, 2017
May 15, 2017
Jul 16, 2018
Jul 16, 2018
Sep 4, 2017
Sep 4, 2017
Jan 15, 2016
Jan 15, 2016
Sep 29, 2014
Sep 4, 2017
Sep 12, 2016
Sep 12, 2016
Dec 22, 2015
Oct 16, 2020
Jan 15, 2016
Aug 11, 2013
Jan 15, 2016
Jan 15, 2016
Aug 31, 2018
Jan 15, 2016
Jan 15, 2016
Jan 15, 2016
Oct 28, 2024
Jan 15, 2016
Jan 15, 2016
Aug 24, 2019
Dec 12, 2015
Jan 15, 2016
Jan 15, 2016
Aug 29, 2017
Jan 15, 2016

Repository files navigation

Unix » shell scripts for sh, bash, tcsh, zsh, etc.

This repo has lots of Unix shell scripts that are utilities.

Command line boosters

awk

sed

directory

file

File scripts to print a given ls field:

find

date

  • date-stamp: Print the current date stamp UTC in a user-friendly format.
  • date-stamp-shortest: Print the current date stamp UTC in the shortest format.

history

grep

  • grep-medium-words: Grep for typical words, length 4-7 characters, all lowercase, a-z.
  • grep-v-web-bots: grep without web robot strings like robots.txt, Googlebot, Mouseflow, etc.
  • grep-v-web-chaff: grep without web chaff like lines that have .css, .js, .png.

lsof

dig

gpg

  • gpg-decrypt: GPG script to decrypt a file with our typical settings.
  • gpg-encrypt: GPG script to encrypt a file with our typical settings.

uri & url

  • uri-escape: URI script to escape text, for example a CGI query string.
  • uri-unescape: URI script to unescape text, for example a CGI query string.
  • uri-scheme: Parse a URI to its fields, for example host, query, fragment.
  • uri-relate: Combine a base URI and relative URI to an absolute URI.

path

  • addpath: Add path(s) to the PATH environment variable
  • rmpath: Remove path(s) from the PATH environment variable.

wc

random passwords

processes

copying

  • cp-progress: Copy files using a command-line progress bar.

networking

scripting

  • cddo: Run a command in each directory.
  • command-is-installed: If a given command installed, then return true.
  • keep: Keep running a command every time any file it looks at is changed.
  • no: Shorthand to always return "n"
  • while-read-do-cd: For each line of input on command line, cd into a path then run a command.

compression

  • extract: Extract a file using best-guess of tar, bzip, rar, gz, zip, etc.
  • tar-bzip2: Run tar using bzip2 compression.

text

  • between: between: print the lines of a file that are between match $1 and match $2.
  • camelize: Convert text to camel-case like FooGooHoo.
  • diff-sort: Shorthand to diff with sort.
  • file-encode-utf-8: Convert encoding of a file to unix utf-8.
  • file-line-num: Print a file's line at a given line number.
  • json-to-xml: json-to-xml is a pipe command to convert
  • h1-links: Convert the first <h1> link in a stream to an HTML list item.
  • summary-line: Summarize a text file in one line.

text replacement

text sets

  • union: set "union" of the inputs' lines.
  • intersect: set "intersect" of the inputs' lines.
  • except: set "except" of the inputs' lines a.k.a. set (A - B).
  • extra: set "extra" of the inputs' lines, a.k.a. set (B - A).

media

fonts

sysadmin

  • ls-tree: List files in your current directory recursively shown as a tree.
  • mkcd: Make a directory with 'mkdir' then change into it with 'cd'.
  • os-version-info: Show operating system version information.
  • reboot-kernel: Quickly (soft-)reboot skipping hardware checks.
  • screenrc: Keybindings.
  • sort-rank: Sort command-line input by rank.
  • susu: Shorthand for: sudo su -

bash

OS X

Specific needs

Applications

  • gimp-2.7.1: Launch GIMP 2.7.1 from our /opt directory with our library path settings.
  • gmail: Check your unread gmail from the command line.
  • gravatar: Gravatar: generate a gravatar URI for a given email address.
  • spam: Move spam email messages out of my inbox folder and into my spam folder.

Images

  • convert-ico-to-png: Convert an ICO image file to a PNG image file.
  • [glue-sprites: Use the glue](glue-sprites: Use the glue) command to compress a directory of images to sprites.

Favicon

Location

Ubuntu

FTP, ProFTPD, and xferlog

SixArm Setup

Ruby

Ruby administration

  • ruby-remove: This script will remove all ruby-related files that we know about. DANGEROUS!
  • ruby-versioner: Set the Ruby environment to be a particular version of Ruby.

Ruby gem

  • gem-paths: Prints your gem paths by calling "gem env" then matching
  • gem-test: Gem script to run all the test files.
  • gem-update: Run gem update, install, tumble, and set up our typical gem sources.
  • gem-fixer: Advises if any gems need fixing or updates. [Deprecated]

Ruby managers

Ruby testing and documentating

Rails

Amazon Web Services

About

SixArm.com » Unix » shell scripts for command line programs in sh, bash, etc.

Topics

Resources

Code of conduct

Citation

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published