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


Please Help Members By Posting Answers For Below Questions

What is grep command in unix with examples?

604


What does the md command do?

568


What is the use of finger command?

598


Is command prompt unix?

579


Explain how to use grep command to list find the records of a file containing 10 different strings?

593






What do chmod command do?

602


How do I use grep to find a file?

579


What is the difference between grep and grep?

565


What does the command ' $who | sort –logfile > newfile' do?

768


Why is it called grep?

557


How do I use nslookup?

573


Can you enlist some commonly used network commands?

600


How can we use grep command in unix?

613


What is the use of cut command in unix?

690


What is the difference between cat command and more command?

599