[SFS] Bash Scripting - Linux Format Magazine

Dennis J Perkins sfs@thegeek.nu
Tue, 05 Nov 2013 15:42:47 -0800


----_com.android.email_163022151389820
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

SXQncyBhIGdyZWF0IGd1aWRlLiDCoEkgaGFkIEx1bHUgcHJpbnQgaXQgZm9yIG1lIGFzIGEgaGFy
ZGNvdmVyIGJvb2sgeWVhcnMgYWdvLgoKClNlbnQgdmlhIHRoZSBTYW1zdW5nIEdhbGF4eSBT4oSi
IElJSSwgYW4gQVQmVCA0RyBMVEUgc21hcnRwaG9uZQoKLS0tLS0tLS0gT3JpZ2luYWwgbWVzc2Fn
ZSAtLS0tLS0tLQpGcm9tOiAiRGF2aWQgTC4gV2lsbHNvbiIgPERMV2lsbHNvbkB0aGVnZWVrLm51
PiAKRGF0ZTogMTEvMDUvMjAxMyAgMTI6NTkgUE0gIChHTVQtMDg6MDApIApUbzogc2ZzQHRoZWdl
ZWsubnUgClN1YmplY3Q6IFJlOiBbU0ZTXSBCYXNoIFNjcmlwdGluZyAtIExpbnV4IEZvcm1hdCBN
YWdhemluZSAKIApEb24ndCB3b3JrIHRvbyBoYXJkOyB0aGUgIkFkdmFuY2VkIEJhc2gtU2NyaXB0
aW5nIEd1aWRlIiBpcyBhdmFpbGFibGUgaW4gc2V2ZXJhbCBwbGFjZXMgb25saW5lLiBUaGlzIHNl
ZW1zIHRvIGJlIGl0J3MgaG9tZTogaHR0cDovL3d3dy50bGRwLm9yZy9MRFAvYWJzL2h0bWwvCgpB
bmQgaXQgaGFzIGJlZW4gcmVuZGVyZWQgdG8gYSBQREYuIFlvdSBjYW4gZmluZCB0aGF0IGFuZCBv
dGhlciB0aGluZ3MgbGlua2VkIGhlcmU6IGh0dHA6Ly93d3cudGxkcC5vcmcvZ3VpZGVzLmh0bWwK
CkFuZCBJIGp1c3QgcmVhZCBDaGFwdGVyIDM4IGluIGl0J3MgZW50aXJldHksIGFuZCB0aGUgYXV0
aG9yIGl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kgUm9tZXJvCj4gCj4gIkRvY3Vt
ZW50YXRpb24gaXMgbGlrZSBzZXg6IHdoZW4gaXQgaXMgZ29vZCwgaXQgaXMgdmVyeSwgdmVyeSBn
b29kOwo+IGFuZCB3aGVuIGl0IGlzIGJhZCwgaXQgaXMgYmV0dGVyIHRoYW4gbm90aGluZy4iIERp
Y2sgQnJhbmRvbgo+IAo+IAo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fCj4gU0ZTIG1haWxpbmcgbGlzdAo+IFNGU0B0aGVnZWVrLm51Cj4gaHR0cDovL21h
aWxtYW4udGhlZ2Vlay5udS9tYWlsbWFuL2xpc3RpbmZvL3Nmcwo+IApfX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpTRlMgbWFpbGluZyBsaXN0ClNGU0B0aGVn
ZWVrLm51Cmh0dHA6Ly9tYWlsbWFuLnRoZWdlZWsubnUvbWFpbG1hbi9saXN0aW5mby9zZnMK

----_com.android.email_163022151389820
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64

PGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0
L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPjwvaGVhZD48Ym9keSA+PGRpdj5JdCdzIGEgZ3JlYXQgZ3Vp
ZGUuICZuYnNwO0kgaGFkIEx1bHUgcHJpbnQgaXQgZm9yIG1lIGFzIGEgaGFyZGNvdmVyIGJvb2sg
eWVhcnMgYWdvLjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+PGRpdiBz
dHlsZT0iZm9udC1zaXplOjc1JTtjb2xvcjojNTc1NzU3Ij5TZW50IHZpYSB0aGUgU2Ftc3VuZyBH
YWxheHkgU+KEoiBJSUksIGFuIEFUJmFtcDtUIDRHIExURSBzbWFydHBob25lPC9kaXY+PC9kaX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