在此示例中,grep对行进行筛选,并输出其修改日期和名称中带Dec的所有文件。
In this example, grep filters the lines, outputting all files with Dec in their modification dates as well as in their names.
例如,清单1中的目录表明,foo . o对象比相应的foo . c源文件的最后修改日期更新。
For example, the directory in Listing 1 shows that the foo.o object is older than the last modification time of the corresponding foo.c source file.
请记住,比较操作针对于文件名,而不是文件系统的创建或修改日期,所以该脚本可以对头天晚上创建的文件进行操作。
Remember that the comparison works on the filename, not the file system creation or modification date, and so the script is able to work with files that might have been created overnight.
应用推荐