Monday, May 6, 2013

How to Get What You Want In One Week. An example. (Another compelling story from James Altucher)

How to Get What You Want In One Week.
An example.

Someone asked me the other day, "who the hell are you to be giving out advice?" My answer: I'm nobody. And I don't give advice.
I only say what's worked for me. I don't care if anyone else tries it or not. I've made millions of dollars, lost it, made it again, lost it, made it again, lost it, made it again and again. I'm not whining about it. It is what it is.
I've been in bad relationships then good ones. I've been suicidal, then not suicidal. I've been on the ground. Then flying high. Then right in the middle, where I like to be.
I've had five or six different careers. or more. I forget. Sometimes they were at the same time. And I write about what happened to me and how I survived and then flourished. And also how I made mistakes. And also about some of the things I wish I had done differently.
(tattoo: Be Happy
(tattoo: "Be Happy")
Take it or leave it. Try it for yourself. Or do something totally different. It doesn't matter. No matter what you do, we'll all be dead in 100 years.
But I've been writing this stuff for a few years. And I get a lot of feedback from people who used these ideas. It always surprises me. I know these ideas work for me. They work for me every day. And if I don't follow the advice in my own blog, then I die. Seriously, I will die.
This morning "WR" instant messages me: "Thank you".
I don't know who he is. I IM back, "For what?"
He wrote, "I was fired eight months ago and I couldn't get a job at all. And then I decided, 'screw it. I'm going to follow James's advice. I'm just going to give ideas, ideas, ideas, and give and give and see what happens. And then within one week I got a job!".
I said, "That's great, W!" And I thought that would be the end of it.
I told Claudia.
She said, "Ask him specifics! He sat down at the job and they said, 'W, tell us about yourself?" What did he say next?"
So I asked him.
WR: The guy told me "do you know anything about mobile apps?"
- "no"
"have you done consulting sales?"
- "hmmmm I've helped, but no. Not me,"
"... ok"
And then I said "but I came with 10 different ideas that your company can start selling to the government" (they need a product manager for government services)
and I opened my pc
showed them that I did my homework and presented him the 10 ideas
ME: and then what happened?
WR: and then the guy asked me what would I do in certain scenarios
which I replied honestly (i've sent you the ppt, btw...)
ME: for each item on your list?
WR: no, for 2 of them. He asked me if the client would say that he's not interested, what would I do
and I went through a process
Listening to the client to see what he wants, identify the key decision makers, etc..
A week later the guy sent me an email saying that he wanted to meet with me again.
meanwhile I was sending ideas to all the companies I've wanted to work with
I went to meet him and his boss, and they told me that they didn't really care about the ideas per se, but the fact that I was there giving ideas and listening and being prepared was what made the difference with the rest of the candidates. He knew from the moment I started giving him ideas and being super honest that he wanted to hired me
Me: that is excellent, Walter, Congrats!
--
I told Claudia. She said, "ask him where he's from?"
I asked him. He said, "Chile".
Claudia: "So in frickin' South America, where nobody can get a job to save their lives, he managed to get a job. This goes to show that all the BS websites that tells you to dress right, videotape practice interviews, polish your resume, prepare for difficult questions, and so on, is all bullshit. Crap!"
--
I went back to WR. "Can I write about this?" He said, "OF COURSE!" I said, "what four posts of mine would you say you enjoyed the most and that you made use of."
He had them bookmarked on his ipad and said them right away.
--
I'm happy. I am coming out with a book soon, "Choose Yourself!" The story of that book, itself, is an adventure which I will write about. But WR is definitely an example of someone who has chosen himself. If you want to write me other examples, please feel free. I am happy when people use these ideas like I have used them. And thanks WR for letting me write your story.
comment on March 16, 2013: How to Get What You Want In One Week. An example.
. . . . . . . . . .

Feel free to email me direct: altucher@gmail.com or to comment here.
 Follow on Twitter | Friend on Facebook | Forward to a Friend | View it in your browser

                  


March 16, 2013: How to Get What You Want In One Week. An example.

'via Blog this'

Sunday, May 5, 2013

"Five Free Tools I Use to Organize My Life” thanks to the Simple Dollar!


The Simple Dollar: "Five Free Tools I Use to Organize My Life" plus 1 more


Five Free Tools I Use to Organize My Life

Posted: 28 Apr 2013 01:00 PM PDT

I have a very busy life. I have three kids, each of which are in different activities. I have three different community committee responsibilties, which means multiple meetings a month and other activities related to each one. I have writing responsibilities that involve two articles a day for The Simple Dollar, an ongoing effort to write a novel, and multiple other freelance opportunities. I have an ongoing social calendar that involves spending time with quite a few friends and family. I have a home that requires maintenance and upkeep. On top of all that, I try to maintain at least some free time for myself to exercise, read, and enjoy other personally fulfilling activities, and I also try to set aside daily time to meditate and keep my mind clear.

The only way I can keep all of this balanced is through careful organization. I use a series of tools to make this work, most of them electronic (though not all). I keep desktop versions of these applications on every computer I work on and a mobile version of these apps on my phone. In addition to what's listed below, I keep a pocket journal with me virtually all of the time, along with a pen.

Without these five free computer programs, I would find my day-to-day life very difficult to manage. I find these five tools to be absolutely essential. I've mentioned each of these in the past, but I felt it was worthwhile to update how I use each of these in my current day-to-day life.

A quick note: although all of these are free, some exist on a "freemium" model. That means that there are some extra features that are unlocked if you're willing to pay some small amount. I am a paid supporter of all of the below tools that offer a "premium" version because I'm a big supporter of supporting what you use.

Evernote
What Is Evernote? Evernote is a tool that lets you take a nearly infinite number of notes, title and label and categorize them, and search them easily from almost anywhere.
Things I Use Evernote For: Jotting down random ideas, organizing those random ideas, hands-free note taking, project brainstorming, journal inventory

I use Evernote almost constantly, perhaps dozens of times a day. I am constantly jotting down random ideas on notes in Evernote, then dealing with them later.

There are so many little uses I find for Evernote.

I'll be on a walk, have an idea, and just flip open my phone, launch Evernote, create a new note, and voice-to-text the note (where I speak and it turns into text) – I can do all of that without even stopping my pace or the podcast I'm usually listening to.

If I'm driving somewhere and I have an idea I want to work out in my head, I'll start it, turn on the voice-to-text, and just ramble my ideas while I'm driving to wherever my destination is.

I'll write down notes and sketches in my pocket notebook, take a picture of the page, and send it to Evernote and it'll turn my handwriting (I take notes in blocky letters) into text I can search or use elsewhere and embed the drawings. I do the same with recipes I see in magazines and on and on and on.

If I'm brainstorming, I can just list lots of ideas in Evernote virtually wherever I am and then sort through them later. If it's a mix of drawings and text, I'll do them on paper and take a picture and deal with it later.

Evernote is the tool I use to dump disorganized information from my head into some place where it can be stored for later. It's flexible enough that I can dump my ideas in almost any format and I'll easily be able to get it into Evernote.

But what do I do with that disorganized information?

Remember the Milk
What Is Remember the Milk? Remember the Milk is a list organizing tool. You can create lists of all kinds, set due dates and priorities on the items, and organize those lists in many ways.
Things I Use Remember the Milk For: Task lists, grocery lists, project organization, daily planning

Much of that disorganized information winds up in Remember the Milk in the form of lists. RtM forces me to take a lot of those rather chaotic notes and put them into a structure where I can actually do something useful.

Let's say I have an idea for a project I want to work on. I rambled on for twenty minutes about it while driving somewhere and all of that was saved in a note – but it's chaotic. I then sit down with Remember the Milk and start piecing through that rambling, honing the ideas down into a useful project plan with a checklist of things to do with due dates and so on. That list goes into Remember the Milk.

I have a recipe that I want to make. I just add the ingredients to my ongoing grocery list in Remember the Milk and then use that grocery list when I'm actually at the store.

When I'm actually going through all of the stuff I need to do during the day, I'm usually looking at Remember the Milk to see what needs to be done next. I keep my daily to-do list in there and I generate a fresh one each evening.

Pocket
What Is Pocket? Pocket lets you save long documents you find online and want to read at a later time. It synchronizes in the background very efficiently.
Things I Use Pocket For: Storing things to read later

I'm constantly finding great articles online that I want to read but that I recognize I don't have time to read at the moment. I'd need to set aside fifteen minutes or thirty minutes of uninterrupted time to really focus on that article to get value out of it.

Well, my web browser has a simple tool on it. I just click that special little Pocket button and the thing I want to read is saved for later. Whenever I'm at another computer or even on my phone, I can instantly retrieve any of those documents I've saved. I'll even save and retrieve emails this way.

Pocket breaks the articles down into text, meaning there's not much data usage for the program and it's easy to read them on a little screen.

If I'm sitting in the waiting room at the doctor's office or waiting for a meeting to start or something like that, I'm often reading an article in Pocket. It's far more convenient than carrying a newspaper or a magazine around with me.

Google Calendar
What Is Google Calendar? Google Calendar is a calendar program that lets you easily save appointments, recurring dates, event reminders, and anything else.
Things I Use Google Calendar For: Scheduling (obviously), irregular event reminders, milestone management

If there's something I need to remember that has a date assigned to it, it goes into Google Calendar.

I keep track of all of the usual things with it, like birthdays and anniversaries and doctor's appointments. Where it really stands out for me, though, is when I use it for things like irregular home maintenance tasks (like when to change the air filter) or car maintenance tasks (like when to air up tires or wash the car).

I also find a great deal of value of using it for milestones. Whenever I plan a project, I try to hit dated milestones along the way. For example, if I'm drafting a book, I try to have a first draft done on day X, a revised draft done on day Y, and edits done on day Z. I'll record those three dates on my calendar so I can see them coming.

This calendar is easy to retrieve everywhere. If I need a printed version, I can easily print off single day calendar pages (for that matter, I can find excellent views to print of all of the things above).

Dropbox
What Is Dropbox? Dropbox is a tool for off-site document storage, retrieval, and sharing
Things I Use Dropbox For: Synchronizing documents wherever I go, off-site backup for family pictures

If I have anything that I want to share between computers and I'm not concerned about privacy (meaning I don't use things like this for sensitive personal data), I just use Dropbox. In fact, Dropbox integrates so smoothly onto my computers and phone that I scarcely realize I'm using it.

I just save a document of virtually any kind on Dropbox and I can pull it up from anywhere – any other computer and on my mobile device. I keep family photos on there, ongoing writing projects on there, and all kinds of other things.

As I said, the only things I don't keep on Dropbox are documents that are highly sensitive – I keep my own backups of those documents at home for security reasons.

These five tools play a tremendous role in keeping my life organized. Without them – and my handy pocket journal – I would be very hard pressed to make everything work. The best part? All of these tools are free.

The post Five Free Tools I Use to Organize My Life appeared first on The Simple Dollar.

"Live Below the Line" and the Value of Extreme Challenges

Posted: 28 Apr 2013 07:00 AM PDT

A close friend of mine recently introduced me to Live Below the Line, a charity that challenges people to live on a food budget of $1.50 a day for five days. Live Below the Line is run by the World Food Program and actually starts tomorrow (though you could, of course, do the challenge yourself any time).

$1.50 a day. That's not very much money at all.

In researching how on earth to pull off that kind of challenge, my attention focused on nutritionally balanced foods (or close to it) that are dirt cheap.

My meal plan for this challenge involves brown rice, dried beans, whatever greens are incredibly cheap at the store, eggs, and salt and pepper for seasoning.

At the store, for example, I can get a dozen eggs for $1.49 right now, a bag of dried mixed beans for $1.49, a bag of 14 ounces of greens for $0.77 (on sale), and a one-pound box of pasta for $1.25. I can buy a giant bag (fifteen pounds) of brown rice for $17, too – it might be cheating a bit there to count a pound of brown rice as being about $1.15, but I'll go with it since that's what people would do who were trying to stretch that food budget for more than five days. I'd count just two pounds of it.

So, if I bought one pound of brown rice for $1.15, two bags of greens for $1.54, a dozen eggs for $1.49, and a bag of dried beans for $1.49, I've spent $5.67 of my $7.50 allotment right there. Add in a second pound of brown rice and I'm at $6.82. I'd probably add enough fruit on top of that to get me to $7.50.

It is a huge challenge to eat on $1.50 a day. That food, spread over five days, results in a pretty low caloric intake, but a survivable one.

Of course, the response to this would be that eating on $1.50 a day isn't really a relevant concern in our lives. We don't have to eat on $1.50 a day, so why do it?

The big reason, of course, is that it provides a quick and stiff education on the challenges of global hunger. Many people in our world live on that small amount as their monthly food budget.

Another reason – and one I find really compelling – is that extreme challenges teach you a lot of things about yourself.

A strong personal challenge can show you angles on a situation that you've never seen before. They can make you try things you never would have considered before. Sometimes, they can lead you to a better way of doing things in your life outside of that challenge.

Another, somewhat less extreme example: my wife and I often do what I call "money-free weekends." We go through an entire weekend without spending an extra dime. We eat purely out of our pantry and whatever extras we have on hand and we find community activities to engage in. We used to make a big deal out of these weekends, but today, we just do them naturally because they're filled with stuff we like to do anyway. The lessons from "money-free weekends" just bled into our daily lives. (Want to try this and need some ideas? Here are 100 things to do during a money-free weekend.)

Take on a challenge in your life. Take on one that seems ludicrously hard and unnecessary. Throw yourself into it and go as deep as you can.

Sure, you might eventually fail, but the lessons you learn from pushing yourself in a new way and the lessons you learn from failure can bring about lasting changes in your life.

The post "Live Below the Line" and the Value of Extreme Challenges appeared first on The Simple Dollar.

Saturday, May 4, 2013

Global Humanitarian Tech Conf,Call-for-Papers (IEEE GHTC'13, San Jose, Oct 20-23)

GHTC Header

Download Call for Papers: Online


Dear IEEE Members,


On behalf of the organizing committee, I am pleased to announce the 2013 IEEE Global Humanitarian Technology Conference (GHTC) will take place on October 20 – 23, 2013, in Silicon Valley, San Jose, California USA. 

This 3rd annual cross-discipline conference provides the perfect venue for persons involved in and/or interested in humanitarian projects to join their peers in Silicon Valley. The audience for this conference includes technologists, engineers, scientists, investors, field project managers, representatives from NGOs, governments, academia, and industry. It will provide an opportunity to share your work, meet others involved in humanitarian technology, formulate projects with new partners. Our sessions will address a wide range of topics and we hope you will submit a paper and plan to join us.

To be held in Silicon Valley, a community famed for leading-edge technological innovations, world-class academia researchers, and technology investors, IEEE GHTC 2013 will offer a wealth of opportunities to improve your knowledge, and expand your network and reach. Whether you are interested in humanitarian activities in the developed or developing world, we look forward to seeing you at GHTC 2013.

Call for Papers

  • Deadline for Full Paper Submission: May 11, 2013
  • Deadline for Accepted Paper Final Version Submission: August 6, 2013


Technical Sessions:

  • Health, Medical Technology, and Telemedicine
  • Water Planning, Availability and Quality
  • Disaster Warning, Avoidance, and Response
  • Educational Technologies
  • Agricultural Technologies
  • Power Infrastructure/Off-grid Power/Renewable and Sustainable Energy
  • Sanitation
  • Connectivity and Communications Technologies for Remote Locations
  • Applying Science, Engineering and Technology   for Sustainability
  • Humanitarian Challenges and Opportunities


The Conference Program will include submitted paper sessions, plenary and invited talks, tutorial sessions, poster sessions, student paper and poster contests, photo and video contests, a young professional project contest,  and many opportunities for social and professional networking.
 
Best Regards,
Keith Moore (keith.moore@ieee.org)
Conference Chair, GHTC 2013

Description: cid:image002.gif@01CDF36A.49F8AF90 Description: cid:image003.gif@01CDF36A.49F8AF90 Description: cid:image004.gif@01CDF36A.49F8AF90 Wordpress Icon Description: cid:image007.gif@01CDF36A.49F8AF90


IEEE Non-Discrimination Policy

To: IEEE members of IEEE Region 1, 4, 5, 6 7 and 8

IEEE, 445 Hoes Lane, Piscataway, NJ 08854 USA, <http://www.ieee.org/>

  

Thursday, May 2, 2013

Environmental Assessment of Servers: Call for Interest in Drafting IEEE P1680.4 (tm) Standard

From: IEEE Standards Association <ieee-sa-exec@ieee.org>
Date: Thu, May 2, 2013 at 4:20 PM
Subject: Call for Interest in Drafting IEEE P1680.4 (tm)
IEEE
IEEE Standards Association

Call for Interest in Drafting
IEEE P1680.4™


IEEE Standards Association (IEEE-SA), in conjunction with the IEEE Computer Society, invites all interested parties to notify us if they wish to participate in the development of IEEE P1680.4™ Standard for Environmental Assessment of Servers.

The IEEE P1680.4 standard will define environmental performance criteria for computer servers. The clear and consistent set of environmental performance criteria provided in the existing IEEE 1680™ will be applied to servers. The environmental performance criteria relates to reduction or elimination of environmentally sensitive materials, materials selection, design for end of life, life cycle extension, energy conservation, end-of-life management, corporate performance, and packaging.

The IEEE 1680™ family of standards have been widely used throughout the world. This standard will join IEEE 1680-2009™, IEEE 1680.1-2009™, IEEE 1680.2-2012™ and IEEE 1680.3-2012™.

This family consists of an "umbrella" standard (IEEE 1680) containing common elements, and individual standards for different products.  Currently IEEE 1680 includes sections that define how the standard is implemented (such as the process for registering products and verifying compliance to the standard) while product specific environmental criteria are published as separate standards under the umbrella standard.  This avoids redundancy, or inconsistency, between the standards and streamlines their development by focusing development on product-specific environmental performance criteria rather than the implementation system.

These standards are intended to provide guidance for government, institutional, and corporate purchasers. Product manufacturers may also use it to earn recognition in the consumer market, recognizing that certain criteria may not be applicable to all types of purchasers. This family of standards is used by the EPEAT registry system to provide manufacturers with an opportunity to secure market recognition for efforts to reduce the environmental impact of electronic products. This standard shall be updated and revised on a periodic basis to continue to set a higher performance standard for leadership products.

Stakeholders for this standard include computer manufacturers, suppliers of materials, equipment and packaging, electronics equipment recyclers, reuse organizations, trade associations, environmental advocacy organizations, purchasers, users, resellers, retailers, environmental representatives of government agencies, academic experts, and the general public.

Your active participation and technical contributions will be instrumental in developing a quality update to the standard.


TO PARTICIPATE:

If you would like to participate in the revision of IEEE P1680.4, please submit the following information by 17 May 2013 to:

Joan Woolery
j.woolery@ieee.org
 

  1. Your name and email address
  2. Name of your employer
  3. If you are a consultant, the name of the client(s) who will be supporting your activities
  4. Which of the following interest categories you belong to:
    1. Producers of the end product within the scope of the standard and their trade associations
    2. Suppliers and their trade associations
    3. Recyclers and their trade associations
    4. Other types of businesses commercially engaged with the product
    5. Governmental agencies
    6. Non-governmental environmental advocacy organizations
    7. Institutional purchasers and consumers
    8. Academics
    9. Public or other

shadow

IEEE STANDARDS ASSOCIATION
445 Hoes Lane
Piscataway, NJ 08854
shadow



Wednesday, May 1, 2013

Comparison Operators (tricky bash details you might not know) - thanks to Neeraj, thegrendel, and tldp.org


7.3. Other Comparison Operators

A binary comparison operator compares two variables or quantities. Note that integer and string comparison use a different set of operators.

integer comparison
-eq
is equal to if [ "$a" -eq "$b" ]
-ne
is not equal to if [ "$a" -ne "$b" ]
-gt
is greater than if [ "$a" -gt "$b" ]
-ge
is greater than or equal to if [ "$a" -ge "$b" ]
-lt
is less than if [ "$a" -lt "$b" ]
-le
is less than or equal to if [ "$a" -le "$b" ]
<
is less than (within double parentheses) (("$a" < "$b"))
<=
is less than or equal to (within double parentheses) (("$a" <= "$b"))
>
is greater than (within double parentheses) (("$a" > "$b"))
>=
is greater than or equal to (within double parentheses) (("$a" >= "$b"))

string comparison
=
is equal to if [ "$a" = "$b" ]
CautionNote the whitespace framing the =.
if [ "$a"="$b" ] is not equivalent to the above.
==
is equal to if [ "$a" == "$b" ] This is a synonym for =.
NoteThe == comparison operator behaves differently within a double-brackets test than within single brackets.
[[ $a == z* ]]   # True if $a starts with an "z" (pattern matching).
[[ $a == "z*" ]] # True if $a is equal to z* (literal matching).

[ $a == z* ]     # File globbing and word splitting take place.
[ "$a" == "z*" ] # True if $a is equal to z* (literal matching).

# Thanks, Stéphane Chazelas
!=
is not equal to if [ "$a" != "$b" ] This operator uses pattern matching within a [[ ... ]] construct.
<
is less than, in ASCII alphabetical order if [[ "$a" < "$b" ]] if [ "$a" \< "$b" ] Note that the "<" needs to be escaped within a [ ] construct.
>
is greater than, in ASCII alphabetical order if [[ "$a" > "$b" ]] if [ "$a" \> "$b" ] Note that the ">" needs to be escaped within a [ ] construct. See Example 27-11 for an application of this comparison operator.
-z
string is null, that is, has zero length
String=''   # Zero-length ("null") string variable.

if [ -z "$String" ]
then
  echo "\$String is null."
else
  echo "\$String is NOT null."
fi     # $String is null.
-n
string is not null.
CautionThe -n test requires that the string be quoted within the test brackets. Using an unquoted string with ! -z, or even just the unquoted string alone within test brackets (see Example 7-6) normally works, however, this is an unsafe practice. Always quote a tested string.[1]
Example 7-5. Arithmetic and string comparisons
#!/bin/bash

a=4
b=5

#  Here "a" and "b" can be treated either as integers or strings.
#  There is some blurring between the arithmetic and string comparisons,
#+ since Bash variables are not strongly typed.

#  Bash permits integer operations and comparisons on variables
#+ whose value consists of all-integer characters.
#  Caution advised, however.

echo

if [ "$a" -ne "$b" ]
then
  echo "$a is not equal to $b"
  echo "(arithmetic comparison)"
fi

echo

if [ "$a" != "$b" ]
then
  echo "$a is not equal to $b."
  echo "(string comparison)"
  #     "4"  != "5"
  # ASCII 52 != ASCII 53
fi

# In this particular instance, both "-ne" and "!=" work.

echo

exit 0
Example 7-6. Testing whether a string is null
#!/bin/bash
#  str-test.sh: Testing null strings and unquoted strings,
#+ but not strings and sealing wax, not to mention cabbages and kings . . .

# Using   if [ ... ]

# If a string has not been initialized, it has no defined value.
# This state is called "null" (not the same as zero!).

if [ -n $string1 ]    # string1 has not been declared or initialized.
then
  echo "String \"string1\" is not null."
else  
  echo "String \"string1\" is null."
fi                    # Wrong result.
# Shows $string1 as not null, although it was not initialized.

echo

# Let's try it again.

if [ -n "$string1" ]  # This time, $string1 is quoted.
then
  echo "String \"string1\" is not null."
else  
  echo "String \"string1\" is null."
fi                    # Quote strings within test brackets!

echo

if [ $string1 ]       # This time, $string1 stands naked.
then
  echo "String \"string1\" is not null."
else  
  echo "String \"string1\" is null."
fi                    # This works fine.
# The [ ... ] test operator alone detects whether the string is null.
# However it is good practice to quote it (if [ "$string1" ]).
#
# As Stephane Chazelas points out,
#    if [ $string1 ]    has one argument, "]"
#    if [ "$string1" ]  has two arguments, the empty "$string1" and "]" 


echo


string1=initialized

if [ $string1 ]       # Again, $string1 stands unquoted.
then
  echo "String \"string1\" is not null."
else  
  echo "String \"string1\" is null."
fi                    # Again, gives correct result.
# Still, it is better to quote it ("$string1"), because . . .


string1="a = b"

if [ $string1 ]       # Again, $string1 stands unquoted.
then
  echo "String \"string1\" is not null."
else  
  echo "String \"string1\" is null."
fi                    # Not quoting "$string1" now gives wrong result!

exit 0   # Thank you, also, Florian Wisser, for the "heads-up".
Example 7-7. zmore
#!/bin/bash
# zmore

# View gzipped files with 'more' filter.

E_NOARGS=85
E_NOTFOUND=86
E_NOTGZIP=87

if [ $# -eq 0 ] # same effect as:  if [ -z "$1" ]
# $1 can exist, but be empty:  zmore "" arg2 arg3
then
  echo "Usage: `basename $0` filename" >&2
  # Error message to stderr.
  exit $E_NOARGS
  # Returns 85 as exit status of script (error code).
fi  

filename=$1

if [ ! -f "$filename" ]   # Quoting $filename allows for possible spaces.
then
  echo "File $filename not found!" >&2   # Error message to stderr.
  exit $E_NOTFOUND
fi  

if [ ${filename##*.} != "gz" ]
# Using bracket in variable substitution.
then
  echo "File $1 is not a gzipped file!"
  exit $E_NOTGZIP
fi  

zcat $1 | more

# Uses the 'more' filter.
# May substitute 'less' if desired.

exit $?   # Script returns exit status of pipe.
#  Actually "exit $?" is unnecessary, as the script will, in any case,
#+ return the exit status of the last command executed.

compound comparison
-a
logical and exp1 -a exp2 returns true if both exp1 and exp2 are true.
-o
logical or exp1 -o exp2 returns true if either exp1 or exp2 is true.
These are similar to the Bash comparison operators && and ||, used within double brackets.
[[ condition1 && condition2 ]]

The -o and -a operators work with the test command or occur within single test brackets.
if [ "$expr1" -a "$expr2" ]
then
  echo "Both expr1 and expr2 are true."
else
  echo "Either expr1 or expr2 is false."
fi


CautionBut, as rihad points out:
[ 1 -eq 1 ] && [ -n "`echo true 1>&2`" ]   # true
[ 1 -eq 2 ] && [ -n "`echo true 1>&2`" ]   # (no output)
# ^^^^^^^ False condition. So far, everything as expected.

# However ...
[ 1 -eq 2 -a -n "`echo true 1>&2`" ]       # true
# ^^^^^^^ False condition. So, why "true" output?

# Is it because both condition clauses within brackets evaluate?
[[ 1 -eq 2 && -n "`echo true 1>&2`" ]]     # (no output)
# No, that's not it.

# Apparently && and || "short-circuit" while -a and -o do not.
Refer to Example 8-3, Example 27-17, and Example A-29 to see compound comparison operators in action.

Notes

[1]As S.C. points out, in a compound test, even quoting the string variable might not suffice. [ -n "$string" -o "$a" = "$b" ] may cause an error with some versions of Bash if $string is empty. The safe way is to append an extra character to possibly empty variables, [ "x$string" != x -o "x$a" = "x$b" ] (the "x's" cancel out).


Other Comparison Operators

'via Blog this'