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
How do I use grep to search for a file?
What does the md command do?
What are the dos commands?
What is awk good for?
What is ctrl d?
What is the command to find maximum memory taking process on the server?
How do I clear my terminal history?
Explain ‘system calls’ with respect to unix commands?
What is the use of find command in unix?
How does shebang work?
What is “chmod” command?
Why is awk called awk?
What does find command return in unix?
Which command is used to create a directory?
How do I delete files from command prompt?