gimme
to GitHub I just realized that I've been using my earbuds (from Apple, came with my iPhone 6 Plus) all wrong.
Maybe you have too -- find out:
bash
:
$EDITOR
by pressing Ctrl-X
then Ctrl-E
${FILE##*/}
- like basename
; removes longest leading */
${FILE%/*}
- like dirname
; removes longest trailing /*
for
loop defaults to iterating over the "$@"
list so you can simply say for ARG; do
to loop over all args[[
rather than the [
-- it has more features and fewer edge casesshellcheck
yo self before you shell wreck yo selfread
ing is fun da mental
X $ find . -type f | while read F # wrong: splits on IFS (whitespaces)
√ $ find . -type f | while read -r F # CORRECT! DO THIS!! ONLY!!!