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 / megharam
$date +DATE:%d-%m-%y
| Is This Answer Correct ? | 0 Yes | 13 No |
Post New Answer View All Answers
What is the first character of the output in ls l command?
What is awk good for?
What is the difference between cat command and more command?
Why is it called grep?
What does the md command do?
How to use grep command to list find the records of a file containing 10 different strings?
What do chmod command do?
What are grep patterns?
What is the use of cut command in unix?
What are the differences among a system call, a library function, and a unix command?
What is rmdir command?
What are bash commands?
Which command should you use to find the remaining disk space in unix server?
What do know about tee command and its usage?
Write a command to display a file’s contents in various formats?