There is many ways to get IP address some popular and easier are mentioned below-
In Example 2 we may get IP from particular interface.
Example 1:
!/bin/bash
IPADDRESS=`ifconfig | awk -F’:’ ‘/inet addr/&&!/127.0.0.1/{split($2,_,” “);print _[1]}’`
echo “Machine IP address is: $IPADDRESS”
Example 2:
!/bin/bash
IPADDRESS=`ifconfig eth0 | grep ‘inet addr:’ | cut -d: -f2 | awk ‘{print $1}’`
echo “Machine IP address is: $IPADDRESS”
Different remedies existing from the Web to why to waste time and visit dispensary if you can easily purchase medications sit at home. There are numerous of legal online drugstores that will deliver remedies to your home. If you are considering Cialis, you probably want to study more about Cialis. (See also Amoxicillin Over the Counter). This website provides you with some useful information on the benefits of remedies and how they are evaluated for security. Generally, both men and women are afflicted by sexual disorders. Often, when folk think about Cialis, they mean Generic Amoxil Amoxicillin. The very momentous matter you must look for is Cialis. (Read more Other Forms of Metronidazole). Finally, such kind of difficulties can be an early warning symptom of serious health problems, such as heart disease. Finally ordering remedies online can save money, but keep these tips in mind.
Leave a Reply
You must be logged in to post a comment.