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 / mad
Small modification required
grep -o '[0-9]*:[0-9]*:[0-9]*' infile
| Is This Answer Correct ? | 5 Yes | 12 No |
Post New Answer View All Answers
Is it inbetween or in between?
What are awk commands?
Name the general commands in using unix os for a beginner?
What is the use of sed command in unix?
What is the comma to display different lines that are found when compare two files?
What are grep patterns?
What is command statement?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What command is used to switching between users in unix?
Give the command for finding the current date.
Differentiate cat command from more command.
What does grep v do?
How do I search for a file in unix command?
What is grep short for?
What is the use of tee command?