Skip to content

A growing collection of bash scripts and oneliners

Notifications You must be signed in to change notification settings

mariasfiraiala/shebangs

Repository files navigation

Learn bash scripting and oneliners through exercise

Bash scripts

Check out the demos. Every directory should include its own README.md, explaining the implementation.

Oneliners

Until I get a better idea regarding the organization of this section, this README.md should do the trick:

Get the total lines of code in a directory, excluding the secret files

$ find . -type f \( ! -iname ".*" \) -exec wc -l {} \; | awk '{ total += $1 } END {print total}'

Change extension for all text files (robust)

$ find . -type f -name "*.txt" -exec rename 's/\.txt$/.csv/' '{}' \;

About

A growing collection of bash scripts and oneliners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published