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 open a port?
Write a command to kill the last background job?
What is command statement?
What do know about tee command?
What command is used to check the current users?
Explain the steps that a shell follows while processing a command.
What does pipe () return?
How do I find previous commands in unix?
What are the commands in UNIX to list the files in a Directory?
What is grep r?
How do I search for a file in unix command?
How do I run a whois command?
What is the use of the command 'ls -x chapter[1-5]' ?
How do you grep recursively?
What is the use of find command in unix?