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
Enumerate some of the most commonly used network commands in unix?
What are reported commands?
Is ‘du’ a command? If so, what is its use?
What is the use of cut command in unix?
How do you grep a case insensitive?
How many unix commands are there?
Why is awk called awk?
Which command is used to restrict incoming messages?
What command is used to switching between users in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Is command prompt unix?
Write a command to display a file’s contents in various formats?
How does shebang work?
What is grep in bash?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?