-
-
Useful commands to know: head(1), tail(1)
-
For those that enabled workdue notifications in gimmeh, you may have started receiving daily e-mails (depending on your settings). Remember, it is a double opt-in system- you have to enable workdue-status, AND email-workdue, otherwise it'll skip you by.
We played a lot more with wildcards, posing some puzzles to craft patterns for (in /usr/bin)
All the files 4 chars in length: ls -d ???? | wc -l
All the files 2 or more chars in length: ls -d ??* | wc -l
All the files that end with a lowercase vowel: ls -d *[aeiou] | wc -l
All the files that do not start with an uppercase vowel and whose 3rd letter is a 'd': ls -d [^AEIOU]?d* | wc -l
All the files that do NOT start NOR end with a lowercase 'm', but DOES contain elsewhere in its name a lowercase 'm': ls -d [^m]*m*[^m] | wc -l
If you are ever in need of an “emergency” ls, echo * will work in a pinch, but won't be pretty.
We discovered that the default behavior of ls(1) when it encounters a directory is to expand is list that directory's contents. This might seem to “break” our wildcard until we see that it is in fact successfully matching the directory's name, then just brings whatever contents along for the ride. We can fix this by issuing the -d argument to ls, which will cause it to treat directories like regular files (ie just list them, and not descend into them).
When you see mention of command(#), it is referring to a particular section of the manual pages for a command (file(1), cp(1), printf(1), printf(3)).
To look up a specific section of the manual, insert it as an argument before the command; for example:
printf(3): man 3 printf
cp(1): man 1 cp
By default, without a section number, the first available manual page in the lowest numbered section will be called up.
You can search through the available manual pages with apropos(1)