Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ByteMeHahaha/bash-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

51 Commits

Repository files navigation

bash-utils

A collection of simple Bash utility commands.

  • Author: Ethan Kletschke
  • Version: 0.4.0
  • Developed on: Ubuntu (WSL2)
  • License: MIT
  • Project metadata file: project.yaml


Current Scripts

mcd (Make-and-change Directory)

mcd was a function I created for my own .bashrc, and was the inspiration behind this entire project.

This function merely makes a directory and changes into it immediately, with some added validation to prevent errors from incorrect input.

todo-finder

Finds TODO line comments in source code files in the current directory, and lists them out. Excludes the .git and node_modules directories.

count-files

Displays the number of files in the working directory or a provided directory.

lower-files

Converts all files' names in the current directory to have lowercase letters only.

find-ext

Finds all files with a provided file extension.

The arguments are as follows:

  1. The file extension to search for, excluding the preceding .
  2. The directory to search (defaults to the current directory)

dir-usage

Displays the current directory's size on disk with more formatted output than Bash's built-in du.

git-log-find

Finds all git logs in a repository that match a specified prefix.

For example:

git-log-find feat

Would output:

b1c3d5e feat: Write `lower-files` script
a1b2c3d feat: Write `mcd` script

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /