Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi All, Can you please let me know how to grep for a
particular pattern in unix. I want to print the dates from
the file exp.txt. the date pattern is DD:MM:YYYY, I just
want to print all the dates from the file exp.txt.

Answer Posted / shweta

grep -v "[Aa-Zz]" exp.txt

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between grep and find command in unix?

1276


What is a bash command?

1240


How do I run a bash script?

1241


Write a command that will display files in the current directory, in a colored, long format.

1274


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1268


Does cp command overwrite files?

1270


What does the command '$ls | wc –l > file1' do?

1300


How to display no of records in oracle using unix command?

1228


How do you repeat a command in terminal?

1294


What is used to type command?

1104


What are some command words?

1203


What is the difference between grep and grep?

1189


What is the difference between cat command and more command?

1272


What is the general format of unix command syntax?

2029


What is ‘ps’ command for?

1241