I have the following file party.txt
that contains something like the following:
Hello Jacky
Hello Peter
Bye Johnson
Hello Willy
Bye Johnny
Hello Mary
Hello Wendy
I used the grep hello
to capture the contents, but when I use the print date +"%Y-%m-%d'
and append to it, I cannot, and I will get many 0
per line.
cat party.txt | grep Hello | awk '{ print date +"%Y-%m-%d"}'
What could I be missing?