'date' is one of the ones it's handy to have 2 versions of, for Mac users. The Linux-compatible date has more options. You can install it as 'gdate' via 'brew install coreutils'. Then you can do things like:
gdate --date="next Friday"
which Linux users can do with 'date' out of the box.
Didn't realize printf was a built-in, not a command. I've entirely replaced 'which' with 'type', since type will also tell you what an alias is aliased to, or the definition of the function if it's a function. Also helpful with pathing is 'env', as in '#! /usr/bin/env bash', python3, etc.
Similarly reassured. May I enter into evidence this one that I use all the time:
find . -name '*.jpg' | cpio -pld ../jpegs
Adjust the find to taste - the magic is that whatever else cpio does it can also take a newline delimited list of filenames and make a sparse, hardlinked subset of a directory
This is great. So tee takes stdin and puts it into a file AND outputs it to stdout as well? Would said file have the content in the next step of say a series of piped commands?
Comments
cute
wget (curl &/or wget)
pgrep (half way between ps and pkill)
nice
gdate --date="next Friday"
which Linux users can do with 'date' out of the box.
find . -name '*.jpg' | cpio -pld ../jpegs
Adjust the find to taste - the magic is that whatever else cpio does it can also take a newline delimited list of filenames and make a sparse, hardlinked subset of a directory
bill withers
https://www.youtube.com/watch?v=HprVW3gS-H4