This is a draft cheat sheet. It is a work in progress and is not finished yet.
Bash Binary Operators
Arithmetic |
String |
Meaning |
-eq |
== |
equal to |
-ne |
!= |
not equal to |
-lt |
\< |
less than |
-le |
|
less than or equal to |
-gt |
\> |
greater than |
-ge |
|
greater than or equal to |
Unwrap LDIF Output
sed 'N;s/\n //;P;D;' filename.ldif |
perl -p -0040 -e 's/\n //' filename.ldif |
AWS Accounts
Account# |
Root Account |
Purpose |
x1735 |
|
Security |
x1319 |
|
Billing |
x6872 |
N/A |
Cloudticity |
x7464 |
N/A |
DemandTrans |
x1123 |
|
Legacy Intranet |
x9642 |
|
CW Health Forum |
x0548 |
|
??? |
x8811 |
|
EDP/CCA |
EDP/CCA Regions
Environment |
IP Range |
Region |
Development |
10.51.0.0/16 |
Ohio |
Staging |
10.50.0.0/16 |
Virginia |
Production |
10.52.0.0/16 |
Oregon |
|
|
LDAP Special Characters
, |
comma |
+ |
plus sign |
" |
double quotation mark |
** |
backslash |
< |
less than |
> |
greater than |
; |
semicolon |
= |
equals sign |
# |
octothorpe |
Bash Variables
$0 |
filename of script |
$1 |
positional parameter #1 |
$2-$9 |
positional parameters #2 - #9 |
${10} |
positional parameter #10 |
$# |
number of positional parameters |
"$*" |
all the positional parameters (as a single word) * |
"$@" |
all the positional parameters (as separate strings) |
${#*} |
number of positional parameters |
${#@} |
number of positional parameters |
$? |
return value |
$$ |
process id (pid) of script |
$- |
flags passed to script (using set) |
$_ |
last argument of previous command |
$! |
process id (pid) of last job run in background |
|
|
Outbound Metra Trains
Depart Chicago |
Arrive Palatine |
3:45 |
4:31 |
4:05 |
5:08 |
4:39 |
5:31 |
4:48 |
5:42 |
4:57 |
5:39 |
5:16 |
5:55 |
5:23 |
6:26 |
5:33 |
6:20 |
5:47 |
6:50 |
6:01 * |
6:50 |
6:25 |
7:09 |
6:30 |
7:26 |
* transfer at Arlington Park
|