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

How do I find previous commands in unix?

592


What does this command do? Cat food 1 > kitty

974


What happens when we execute a unix command?

594


Which command can you use to find the currently running process in unix server?

583


How many unix commands are there?

622






What is unix command?

579


What is the unix command to confirm a remote host is alive or not?

577


What is the difference between awk and grep?

555


What is the function of grep command in unix?

580


How do I use grep to search for a file?

578


What do chmod command do?

600


Why is shebang used?

592


Who invented grep?

648


Which command is used to find whether the system is 32 bit or 64 bit?

627


What is rmdir command?

546