Shebangs
A growing collection of bash scripts and oneliners
Install / Use
/learn @mariasfiraiala/ShebangsREADME
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/' '{}' \;
