{"id":13567566,"url":"https://github.com/SixArm/sixarm_unix_shell_scripts","last_synced_at":"2025-04-04T01:32:27.416Z","repository":{"id":137270548,"uuid":"678313","full_name":"SixArm/sixarm_unix_shell_scripts","owner":"SixArm","description":"SixArm.com » Unix » shell scripts for command line programs in sh, bash, etc.","archived":false,"fork":false,"pushed_at":"2024-12-12T05:46:46.000Z","size":943,"stargazers_count":59,"open_issues_count":1,"forks_count":26,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-31T08:08:44.089Z","etag":null,"topics":["command","scripts","shell","unix"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"history-clear","contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-05-21T03:02:00.000Z","updated_at":"2024-12-19T09:22:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d6587cf-395c-471c-acd7-7f0345bd62fa","html_url":"https://github.com/SixArm/sixarm_unix_shell_scripts","commit_stats":{"total_commits":888,"total_committers":8,"mean_commits":111.0,"dds":"0.012387387387387427","last_synced_commit":"ccc7e2d958ff3a6b694ad58f221a6e493c16e713"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_unix_shell_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_unix_shell_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_unix_shell_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_unix_shell_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_unix_shell_scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107816,"owners_count":20884793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command","scripts","shell","unix"],"created_at":"2024-08-01T13:02:34.915Z","updated_at":"2025-04-04T01:32:22.397Z","avatar_url":"https://github.com/SixArm.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Unix » shell scripts for sh, bash, tcsh, zsh, etc.\n\nThis repo has lots of Unix shell scripts that are utilities.\n\n\n## Command line boosters\n\n\n### awk\n\n  * [awk-remove-dupe-lines](awk-remove-dupe-lines): Remove duplicate lines in a file without sorting.\n\n\n### sed\n\n * [sed-char-to-html-entity-name](sed-char-to-html-entity-name): sed script to change all non-HTML characters to their HTML entity names.\n * [sed-delete-blank-lines](sed-delete-blank-lines): Delete all blank lines, i.e. lines with no characters.\n * [sed-delete-duplicate-consecutive-lines](sed-delete-duplicate-consecutive-lines): Delete duplicate, consecutive lines from a file (emulates \"uniq\").\n * [sed-delete-duplicate-nonconsecutive-lines](sed-delete-duplicate-nonconsecutive-lines): Delete duplicate, nonconsecutive lines from a file.\n * [sed-delete-leading-and-trailing-whitespace](sed-delete-leading-and-trailing-whitespace): Delete leading and trailing whitespace (spaces and tabs).\n * [sed-delete-leading-blank-lines](sed-delete-leading-blank-lines): Delete all leading blank lines at top of file.\n * [sed-delete-leading-whitespace](sed-delete-leading-whitespace): Delete leading whitespace (spaces and tabs).\n * [sed-delete-most-html-tags](sed-delete-most-html-tags): Delete most HTML tags (accommodates multiple-line tags)\n * [sed-delete-newlines](sed-delete-newlines): Use sed to delete all the newlines except the last one, which we want for normal output.\n * [sed-delete-trailing-blank-lines](sed-delete-trailing-blank-lines): Delete all trailing blank lines.\n * [sed-delete-trailing-whitespace](sed-delete-trailing-whitespace): Delete trailing whitespace (spaces and tabs).\n * [sed-extract-version](sed-extract-version): sed script to print the VERSION string from a text file.\n * [sed-join-equal-sign-lines](sed-join-equal-sign-lines): sed script to join lines that end with equal signs.\n * [sed-simple-quotes-and-dashes](sed-simple-quotes-and-dashes): Change smart characters into simple characters.\n * [sed-uncolor](sed-uncolor): sed script to uncolor lines by removing ascii color characters.\n\n\n### directory\n\n * [dir-is-empty](dir-is-empty): Detect if a directory is empty or not.\n\n\n### file\n\nFile scripts to print a given [ls](ls) field:\n\n * [file-permissions](file-permissions)\n * [file-link-count](file-link-count)\n * [file-user-name](file-user-name)\n * [file-user-number](file-user-number)\n * [file-group-name](file-group-name)\n * [file-group-number](file-group-number)\n * [file-size](file-size)\n\n\n### find\n\n * [find-broken-symlinks](find-broken-symlinks): Find broken symlinks.\n * [find-empty-directories](find-empty-directories): Find empty directories.\n * [find-fast](find-fast): Find script with pruning of /dev, /proc, /tmp, .git, .svn, etc .\n * [find-file-size](find-file-size): Print each file's size and name.\n * [find-file-size-sort](find-file-size-sort): Print each file's size and name, with sort by size.\n * [find-git-repos](find-git-repos): Find git repostitory directories.\n * [find-git-repos-fast](find-git-repos-fast): Find git repostitory directories by using faster functions.\n\n\n### date\n\n * [date-stamp](date-stamp): Print the current date stamp UTC in a user-friendly format.\n * [date-stamp-shortest](date-stamp-shortest): Print the current date stamp UTC in the shortest format.\n\n\n### history\n\n * [history-count-commands](history-count-commands): Count your history commands.\n * [history-rank](history-rank): List your most-frequent history commands.\n * [history-clear](history-clear): Clear the history in bash and zsh.\n\n### grep\n\n * [grep-medium-words](grep-medium-words): Grep for typical words, length 4-7 characters, all lowercase, a-z.\n * [grep-v-web-bots](grep-v-web-bots): grep without web robot strings like robots.txt, Googlebot, Mouseflow, etc.\n * [grep-v-web-chaff](grep-v-web-chaff): grep without web chaff like lines that have .css, .js, .png.\n\n\n### lsof\n\n * [lsof-i-established](lsof-i-established): Show current active connections i.e. that say \"ESTABLISHED\".\n * [lsof-i-listen](lsof-i-listen): Show current listening connections i.e. that say \"LISTEN\".\n * [lsof-link-count-less-than-1](lsof-link-count-less-than-1): Shows you all open files that have a link count less than 1.\n\n\n### dig\n\n * [dig-soa](dig-soa): Dig a domain's start of authority nameserver.\n * [dig-subdomains](dig-subdomains): Dig a domain's subdomains\n\n\n### gpg\n\n * [gpg-decrypt](gpg-decrypt): GPG script to decrypt a file with our typical settings.\n * [gpg-encrypt](gpg-encrypt): GPG script to encrypt a file with our typical settings.\n\n\n### uri \u0026amp; url\n\n * [uri-escape](uri-escape): URI script to escape text, for example a CGI query string.\n * [uri-unescape](uri-unescape): URI script to unescape text, for example a CGI query string.\n * [uri-scheme](uri-scheme): Parse a URI to its fields, for example host, query, fragment.\n * [uri-relate](uri-relate): Combine a base URI and relative URI to an absolute URI.\n\n\n### path\n\n * [addpath](addpath): Add path(s) to the PATH environment variable\n * [rmpath](rmpath): Remove path(s) from the PATH environment variable.\n\n\n### wc\n\n * [wc-all-files-in-directory](wc-all-files-in-directory): Count the lines in all the files in a directory.\n * [wc-l](wc-l): Print the number of lines of a file.\n\n\n### random passwords\n\n * [random-password-encrypt](random-password-encrypt): Generate a random password and encrypt it.\n\n\n### processes\n\n * [kill-with-user](kill-with-user): Kill a process with a given user.\n * [kill-all-zombie-parents](kill-all-zombie-parents): Kill all processes that are parents of zombies.\n * [ps-top-mem](ps-top-mem): Print the processes that are using the most RAM.\n * [shell-command](shell-command): Print the current running shell command e.g. '/bin/bash'.\n\n\n### copying\n\n * [cp-progress](cp-progress): Copy files using a command-line progress bar.\n\n\n### networking\n\n * [infiltrated-blacklisted](infiltrated-blacklisted): Block known dirty hosts from reaching your machine.\n * [my-ip](my-ip): Print this system's IP address via whatismyip.org\n * [netstat-listening-easy](netstat-listening-easy): Shorthand to use netstat to listen and print our typical output.\n * [nmap-probe](nmap-probe): Get info about remote host ports and OS detection.\n\n\n### scripting\n\n * [cddo](cddo):  Run a command in each directory.\n * [command-is-installed](command-is-installed): If a given command installed, then return true.\n * [keep](keep): Keep running a command every time any file it looks at is changed.\n * [no](no): Shorthand to always return \"n\"\n * [while-read-do-cd](while-read-do-cd): For each line of input on command line, cd into a path then run a command.\n\n\n### compression\n\n * [extract](extract): Extract a file using best-guess of tar, bzip, rar, gz, zip, etc.\n * [tar-bzip2](tar-bzip2): Run tar using bzip2 compression.\n\n\n### text\n\n * [between](between): between: print the lines of a file that are between match $1 and match $2.\n * [camelize](camelize): Convert text to camel-case like FooGooHoo.\n * [diff-sort](diff-sort): Shorthand to diff with sort.\n * [file-encode-utf-8](file-encode-utf-8): Convert encoding of a file to unix utf-8.\n * [file-line-num](file-line-num): Print a file's line at a given line number.\n * [json-to-xml](json-to-xml): json-to-xml is a pipe command to convert\n * [h1-links](h1-links): Convert the first \u0026lt;h1\u0026gt; link in a stream to an HTML list item.\n * [summary-line](summary-line): Summarize a text file in one line.\n\n\n### text replacement\n\n * [uuid-line-fill](uuid-line-fill): uuid-filler reads input lines and fills in secure random UUIDs.\n * [version-file-text-changer](version-file-text-changer): Search-and-replace the VERSION number in a text file.\n\n\n## text sets\n\n * [union](union): set \"union\" of the inputs' lines.\n * [intersect](intersect): set \"intersect\" of the inputs' lines.\n * [except](except): set \"except\" of the inputs' lines a.k.a. set (A - B).\n * [extra](extra): set \"extra\" of the inputs' lines, a.k.a. set (B - A).\n\n\n### media\n\n * [ffmpeg-x11-screencast](ffmpeg-x11-screencast): Record a screencast and convert it to an mpeg movie.\n * [flac-to-ogg](flac-to-ogg): Convert sound files from FLAC format to Ogg format.\n * [gs-combine-pdf](gs-combine-pdf): Ghostscript: combine multiple PDFs into one readable, searchable, PDF\n * [mount-iso](mount-iso): Mount a .iso file.\n\n\n### fonts\n\n  * [font-file-to-family](font-file-to-family): Parse a font file to the preferred family string.\n  * [font-file-to-full-name](font-file-to-full-name): Parse a font file to the full name string.\n  * [font-unzip](font-unzip): Unzip a font zip file and move fonts to a family directory\n\n\n### sysadmin\n\n * [ls-tree](ls-tree): List files in your current directory recursively shown as a tree.\n * [mkcd](mkcd): Make a directory with 'mkdir' then change into it with 'cd'.\n * [os-version-info](os-version-info): Show operating system version information.\n * [reboot-kernel](reboot-kernel): Quickly (soft-)reboot skipping hardware checks.\n * [screenrc](screenrc): Keybindings.\n * [sort-rank](sort-rank): Sort command-line input by rank.\n * [susu](susu): Shorthand for: sudo su -\n\n\n### bash\n\n * [bind-list-functions-and-bindings](bind-list-functions-and-bindings): List Bash bind keyboard shortcuts.\n * [stty-list-functions-and-bindings](stty-list-functions-and-bindings): List Bash stty keyboard shortcuts.\n\n\n### OS X\n\n * [brew-cask-repair](brew-cask-repair): Repair Homebrew manager on OSX.\n\n\n## Specific needs\n\n\n### Applications\n\n * [gimp-2.7.1](gimp-2.7.1): Launch GIMP 2.7.1 from our /opt directory with our library path settings.\n * [gmail](gmail): Check your unread gmail from the command line.\n * [gravatar](gravatar): Gravatar: generate a gravatar URI for a given email address.\n * [spam](spam): Move spam email messages out of my inbox folder and into my spam folder.\n\n\n### Images\n\n * [convert-ico-to-png](convert-ico-to-png): Convert an ICO image file to a PNG image file.\n * [glue-sprites`: Use the `glue](glue-sprites`: Use the `glue) command to compress a directory of images to sprites.\n\n\n### Favicon\n\n * [favicon-fetch](favicon-fetch): Download a web page's favicon.\n * [html-to-favicon-url](html-to-favicon-url): Parse HTML to extract the favicon URL.\n\n\n### Location\n\n * [geocode-address-to-lat-lng](geocode-address-to-lat-lng): Geocode an addres to a latitude and longitide.\n\n\n### Ubuntu\n\n * [empty-trash](empty-trash): Empty the trash on an Ubuntu system.\n\n\n### FTP, ProFTPD, and xferlog\n\n * [proftpd-stats-date-summary-of-login-success](proftpd-stats-date-summary-of-login-success): Count successful logins per date.\n * [xferlog-stats-count](xferlog-stats-count): Count FTP transfer log items per date, with options for filtering.\n * [xferlog-stats-date-summary](xferlog-stats-date-summary): Print statistics with date summary information.\n\n\n### SixArm Setup\n\n * [openssl-req-new-key-pem-for-sixarm](openssl-req-new-key-pem-for-sixarm): OpenSSL script to generate a new key file for SixArm.com\n * [sixarm-setup-glassfish](sixarm-setup-glassfish): How to download and install Glassfish version 3 with typical settings.\n * [sixarm-setup-server](sixarm-setup-server): Fresh unix install for a typical sixarm server.\n\n\n## Ruby\n\n\n### Ruby administration\n\n * [ruby-remove](ruby-remove): This script will remove all ruby-related files that we know about. DANGEROUS!\n * [ruby-versioner](ruby-versioner): Set the Ruby environment to be a particular version of Ruby.\n\n\n### Ruby gem\n\n * [gem-paths](gem-paths): Prints your gem paths by calling \"gem env\" then matching\n * [gem-test](gem-test): Gem script to run all the test files.\n * [gem-update](gem-update): Run gem update, install, tumble, and set up our typical gem sources.\n * [gem-fixer](gem-fixer): Advises if any gems need fixing or updates. [Deprecated]\n\n\n### Ruby managers\n\n* [ruby-build-install](ruby-build-install): Install `ruby-build` where we want it.\n * [ruby-build-update](ruby-build-update): Use `ruby-build` to update Ruby in our preferred locations.\n * [ruby-install-install](ruby-install-install): Install `ruby-install`` where we want it.\n\n\n### Ruby testing and documentating\n\n * [rcov-easy](rcov-easy): Run rcov on our typical test files.\n * [ruby-header-comments-to-rdoc](ruby-header-comments-to-rdoc): For each input file name, get the header comments and emit rdoc format.\n * [ruby-metaprogramming-metric](ruby-metaprogramming-metric): How many metaprogramming methods are in your Ruby code?\n * [yardoc-easy](yardoc-easy): Run yardoc on all our lib files.\n\n\n### Rails\n\n * [rails-deploy](rails-deploy): Rails script to do a simple deployment from the command line.\n * [rails-metaprogramming-metric](rails-metaprogramming-metric): How many meta-programming methods are in your Rails project?\n * [rails-script-server](rails-script-server): rails-script-server - A better script/server alias.\n * [rails-script-server-colorizer](rails-script-server-colorizer): Colorize our rails server output.\n * [rails-test-unit](rails-test-unit): Run our typical test files\n * [rails-word-count](rails-word-count): Shows the word count of each file in a Rails app subdirectory.\n * [rails_root_vendor_plugins](rails_root_vendor_plugins): Print a list of the Rails plugins in ./vendor/plugins\n\n\n## Amazon Web Services\n\n * [aws-pem-file-to-fingerprint](aws-pem-file-to-fingerprint): Given a AWS PEM key pair file, print the fingerprint.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSixArm%2Fsixarm_unix_shell_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSixArm%2Fsixarm_unix_shell_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSixArm%2Fsixarm_unix_shell_scripts/lists"}