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
How do I use grep to find a file?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
How to use grep command to list find the records of a file containing 10 different strings?
How to find $ai_serual resolved path by using unix
Write a command to display a file’s contents in various formats?
What does the “echo” command do?
How do I search for a file in unix command?
What is command statement?
hw will u use awk in replacing cahrs and files
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is used to type command?
What is the use of find command in unix?
What is s and g in sed command?
How can we use grep command in unix?
Give the command for finding the current date.