SixArm.com » Unix » shell scripts for command line programs in sh, bash, etc.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
.gitignore
CODEOWNERS
README.md
VBoxManage-clone-from-vmdk-to-vdi-then-resize
amazon-kindle--sync-from-mac-to-device
aptitude-description
awk-remove-dupe-lines
awk-replace-text-with-file
aws-pem-file-to-fingerprint
bash-pid-to-command
behead
between
bind-list-functions-and-bindings
cabal-list-reinstall
camelize
cat-sep
cddo
chmod-find-type
chmod-heuristic-for-readable-files
clear-recently-used
codeclimate-url-to-badge-id
color-echo-examples
command-is-installed
command-pager
convert-gif-to-png
convert-ico-to-png
cp-dirs
cp-progress
cron-pro
csplit-on-blank-line
curl-font-awesome-variables
curl-json
curl-json-api
dash-app-multi-user
date-stamp
date-stamp-shortest
date-ymd
date-ywd
declone-each-stdin0-file-stem
declone-each-stdin0-file-stem-via-size
df-local-portable-type
diff-2
diff-find-spec-app
diff-sort
dig-soa
dig-spf
dig-subdomains
dir-is-empty
disk-size
disk-size-total
dropkick.sh
du-easy
du-triage
dups.bash
dups.zsh
echo-now
ee
emacs-stop
empty-trash
example-temp-dir
exif-date-time
extract
favicon-fetch
fetch-to-attrs
ffmpeg-x11-screencast
file-encode-utf-8
file-eq
file-group-name
file-group-number
file-line-num
file-link-count
file-owner-name
file-owner-number
file-permissions
file-snapshot
file-snapshot-truncate
filedo
files-with-coding-utf-8
files-with-user-bin-env-ruby
files-without-coding-utf-8
files-without-usr-bin-env-ruby
find-and-rename-delete-spaces
find-broken-symlinks
find-empty-directories
find-fast
find-file-size-sort
find-file-time-epoch
find-file-time-utc
find-git-repos
find-git-repos-fast
find-ruby-syntax-errors
find-symlink-orphans
fix-update-notifier-fsck-at-reboot-motd
flac-to-ogg
font-file-organizer
font-file-to-ext
font-file-to-family
font-file-to-full-name
font-file-to-path
font-unzip
gawk-lower
gawk-upper
gem-fixer
gem-install-our-favorites
gem-paths
gem-test
gem-update
gemfile-to-gem-names
getent-user-home-directory
getent-user-name
gimp-2.7.1
git-branch-track-remote-all
github-get-users-repos-all-names
github-init
github-team-repo
github-user-email
glue-sprites
gmail
google-maps-api-geocode-address-to-lat-lng.rb
google-maps-api-geocode-address-to-lat-lng.sh
gpg-agent-daemon-pinentry
gpg-dialog.pl
gpg-gen-key
gravatar
grep-email-addresses
grep-medium-words
grep-non-ascii
grep-v-web-bots
grep-v-web-chaff
gs-combine-pdf
h1-links
helpers.sh
heroku-certs-info
histogram
histogram-by-date
history-clear
history-count-commands
history-rank
html-to-favicon-url
http-server
infiltrated-blacklisted
inotifywait-example
install-all
java-jdk-pkg-to-dir
join-files
json-pretty
json-to-xml
json-to-yaml
keep
kill-all-zombie-parents
kill-with-user
linkedin-sales-navigator-html-parser
loadavg
ls-newest
ls-tree
lshw-network-wireless-driver
lsof-i-established
lsof-i-listen
lsof-link-count-less-than-1
lsof-rank-by-process
lsof-rank-by-size
mac-address
make-print
mkcd
mkdir-country-codes
mkdir-for-video-editing
mkdir-outline
mkdir-outline-and-placeholder-files
mkdir-us-state-codes
mkpasswd-sha-512-via-python-passlib.py
mkpasswd-sha-512-via-shell
molecular-formula-to-mass.awk
motion-create-demo
mount-iso
mount-nexus
my-ip
my-os-installation-time
nc-webserver
netstat-all
netstat-listening-easy
nmap-probe
no
normalize-shop-title
normalize-title
openssl-connect-and-show-dates
openssl-convert-private-key-from-pem-text-to-der-binary
openssl-req-new-key-pem-for-sixarm
openssl-x509-show
os-version-info
osx-show-opt-directory
pager-command
pandoc-to-html5-standalone-with-assets
password-prompt
path-add
path-rm
paths-sort-by-size
plist-software-package-url
posix-proof
prepend
print-executables
proftpd-log-columnize
proftpd-log-shunt
proftpd-stats-date-summary-of-login-success
ps-top-mem
rails-deploy
rails-metaprogramming-metric
rails-script-server
rails-script-server-colorizer
rails-test-unit
rails-up
rails-word-count
rails_root_vendor_plugins
random-chars.js
random-password-encrypt
rcov-easy
reboot-kernel
redcarpet-markdown-to-html
rename-recursive
reset-network-wireless-driver
rm-artifacts
rm-clone
rm-doc-danger
rm-locale-files-danger
rm-var-log-unwanted-danger
rsync-backup-home-directory
rsync-directories
rsync-exclude-from-home-directory.txt
rub
ruby-build-install
ruby-build-update
ruby-header-comments-to-rdoc
ruby-install-easy
ruby-install-install
ruby-metaprogramming-metric
ruby-remove
ruby-stable-version.rb
rubyv
screenrc
sed-char-to-html-entity-
sed-char-to-html-entity-decimal
sed-char-to-html-entity-hex
sed-char-to-html-entity-name
sed-delete-blank-lines
sed-delete-duplicate-consecutive-lines
sed-delete-duplicate-nonconsecutive-lines
sed-delete-leading-and-trailing-whitespace
sed-delete-leading-blank-lines
sed-delete-leading-whitespace
sed-delete-most-html-tags
sed-delete-newlines
sed-delete-trailing-blank-lines
sed-delete-trailing-whitespace
sed-double-space
sed-eos-append-newline-as-needed
sed-extract-version
sed-html-link-to-markdown
sed-join-when-next-line-starts-with-blank
sed-join-when-next-line-starts-with-equal
sed-join-when-this-line-ends-with-backslash
sed-mac-return-to-unix-newline
sed-rails-scaffold-normalizer
sed-rails-schema-to-scaffold
sed-simple-quotes-and-dashes
sed-start-stop
sed-triple-space
sed-uncolor
sed-weekly
sed-wikipedia-category-page-to-markdown
sed-wikipedia-link-to-markdown
select-abbrevations
shasum-512-of-each-stdin-file-name
shasum-512-of-each-stdin-line
shasum-512-of-each-stdin0-file-name
shasum-512-of-each-stdin0-line
shell-command
sixarm-setup-glassfish
sixarm-setup-server
sixarm-shell-functions
slack-webhook-send-message
smugmug-page-uri-to-image-uri
sort-rank
spam
split-lines-evenly
stat-mod
stty-list-functions-and-bindings
summary-line
tag-bank-transactions
tar-bzip2
tar-list-files-gz
terminal-tab-title
terminal-window-title
text-to-one-word-per-line
text-to-uniq-word-per-line
todos
todos.test.txt
tr-lower
tr-upper
trash-when-ogg-is-better-than-mp3
trashable
tree-spaces
twinless
ubuntu-version
uniq-count
uniq-count-total
uri-decode-using-perl
uri-encode-using-perl
uri-relate
user
uuid-line-fill
vbox-share
version-file-text-changer
wc-all-files-in-directory
wc-l
wget-as-googlebot
wget-mirror
while-file-open-mv
while-read-do-cd
wipe-free-disk-space
xcode-documentation-docsets-fix
xcodebuild-clean-archive-export
xferlog-stats-count
xferlog-stats-date-summary
xml-to-json
yaml-to-json
yardoc-easy

README.md

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 theglue](glue-sprites: Use theglue) 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