Sponsored Content
Full Discussion: ls command basics???
Top Forums Shell Programming and Scripting ls command basics??? Post 302561007 by ahamed101 on Sunday 2nd of October 2011 11:53:07 PM
Old 10-03-2011
4 letter files
Code:
ls | egrep [a-z]{4}

3rd letter l or n
Code:
ls | egrep "..[l|n]"

Not sure if "ls" command alone can be used to get all these.

--ahamed
This User Gave Thanks to ahamed101 For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX Basics

I want to learn UNIX, but I have a few questions. If anybody could help me out I'd greatly appreciate it. First, I've decided I'm going to use Red Hat Linux and I've been told the only difference between 7.2 and the Professional (besides the price), is the tech support that you'll receive. Is... (2 Replies)
Discussion started by: paulSF
2 Replies

2. Shell Programming and Scripting

Shell basics

Hi All, I have a basic question in Scripting. Can anyone tell me what is the difference b/w the two syntax : if (( $lines = 0 )); and if ; when do we use the square brackets & when to use the paranthesis. Thanks, Pradeep (3 Replies)
Discussion started by: pradeep_desh
3 Replies

3. UNIX for Dummies Questions & Answers

Installation basics

hello, Im new to this Os. so, can i get any information'bout installation basics of unix. (1 Reply)
Discussion started by: Abhijit Bhatt
1 Replies

4. IP Networking

SAN basics

Hi I like to learn and practice SAN, iSCSI. Could you sugges the appropriate tutorial and small tasks to practice SAN. Thankyou (1 Reply)
Discussion started by: kingskar
1 Replies

5. AIX

DB2 basics

Dear friends I am going to study DB2 and i dont have any experience with any DB's.. Please provide me with some links or pdf's for DB2 starters. any advice will be very usefull (2 Replies)
Discussion started by: Vit0_Corleone
2 Replies

6. UNIX for Dummies Questions & Answers

awk basics

Hi, Please tell me where can I get started with awk..like the basics and the whole awk stuff. Regards, Deepti (2 Replies)
Discussion started by: gaur.deepti
2 Replies

7. AIX

AIX Basics

Hello , Everyone , I want to know the Aix Basics and how it works ,hardware related problems and solution etc. (1 Reply)
Discussion started by: narendram
1 Replies

8. UNIX for Dummies Questions & Answers

help me with basics

hello everyone i have to start with unix as it is a part of my training programme and i have to do a self study, i dont know where to start from. i need some basic questions to be answerd like why we use unix ? what is a terminal? what is an editor? why we write commands inside terminal? these... (4 Replies)
Discussion started by: aryancool
4 Replies

9. UNIX for Dummies Questions & Answers

UNIX Basics

Hello, 1) I am trying to get involved in UNIX for educational purposes so I have installed the latest Ubuntu edition 12.04. Do you know another package that I could use it instead for educational purposes? 2)What is the difference between "~$" and "/$" (it comes with cd / and cd ~) .The... (1 Reply)
Discussion started by: Iwn
1 Replies
GEOIP_CONTINENT_CODE_BY_NAME(3) 					 1					   GEOIP_CONTINENT_CODE_BY_NAME(3)

geoip_continent_code_by_name - Get the two letter continent code

SYNOPSIS
string geoip_continent_code_by_name (string $hostname) DESCRIPTION
The geoip_continent_code_by_name(3) function will return the two letter continent code corresponding to a hostname or an IP address. PARAMETERS
o $hostname - The hostname or IP address whose location is to be looked-up. RETURN VALUES
Returns the two letter continent code on success, or FALSE if the address cannot be found in the database. Continent codes +-----+----------------+ |Code | | | | | | | Continent name | | | | +-----+----------------+ | | | | AF | | | | | | | Africa | | | | | | | | AN | | | | | | | Antarctica | | | | | | | | AS | | | | | | | Asia | | | | | | | | EU | | | | | | | Europe | | | | | | | | NA | | | | | | | North america | | | | | | | | OC | | | | | | | Oceania | | | | | | | | SA | | | | | | | South america | | | | +-----+----------------+ EXAMPLES
Example #1 A geoip_continent_code_by_name(3) example This will print where the host example.com is located. <?php $continent = geoip_continent_code_by_name('www.example.com'); if ($continent) { echo 'This host is located in: ' . $continent; } ?> The above example will output: This host is located in: NA SEE ALSO
geoip_country_code_by_name(3). PHP Documentation Group GEOIP_CONTINENT_CODE_BY_NAME(3)
All times are GMT -4. The time now is 06:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy