我有以下文件party.txt,其中包含以下内容:
Hello Jacky
Hello Peter
Bye Johnson
Hello Willy
Bye Johnny
Hello Mary
Hello Wendy
我使用grep hello来捕获内容,但是当我使用print date +"%Y-%m-%d'并附加到它时,我不能,而且0每行会得到很多。
cat party.txt | grep Hello | awk '{ print date +"%Y-%m-%d"}'
我会错过什么?