It’s not easy to remember, so here’s the reference.
var=aaa.bbb.ccc
% |
%% |
# |
## |
|
|---|---|---|---|---|
.* |
${var%.*} => aaa.bbb |
${var%%.*} => aaa |
${var#.*} => aaa.bbb.ccc (doesn’t work) |
${var##.*} => aaa.bbb.ccc (doesn’t work) |
*. |
${var%*.} => aaa.bbb.ccc (doesn’t work) |
${var%%*.} => aaa.bbb.ccc (doesn’t work) |
${var#*.} => bbb.ccc |
${var##*.} => ccc |
Bash files test operators reference. Everybody using Bash actively should know at least -e -f and -d operators, but there are many others :)
Bash special variables reference. Everybody using Bash actively should know at least positional variables, Return value variable, Process ID variable, but there are also many others..
Textile is a simple text markup. Simple symbols mark words’ emphasis. Blocks of text can be easily tagged as headers, quotes, or lists. A Textile document can then be converted to HTML for viewing on the web. You can try Textile out on the Textile home page.
Textile is also available as RedCloth for Ruby or PyTextile for Python.
Vi commands reference, excerpted from the documentation. I’ve been using vi for years, but it’s still a very exciting reading for me (kind of “wow! It’s just that simple!”)
Home
Contacts
Downloads
RoR
Servers
Notes
Linux
ERR
Русский