【发布时间】:2015-08-25 13:22:00
【问题描述】:
我是 shell 编程的新手。我想要一个像这样的文本文件作为我的数据库
Booktitle
abcd
Author
abcd
Publisher
abcd
Year of publication
2009
我怎样才能使用任何关键字,让程序找到那本书的所有信息。例如:当我输入grep -i "abcd" books.txt 时。程序将显示:
Booktitle Author Publisher Year of Publication
abcd abcd abcd 2009
非常感谢你们!
【问题讨论】: