文件操作 - mailpopclient.awk
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/gawk/examples/network/mailpopclient.awk
编辑文件内容
BEGIN { POPService = "/inet/tcp/0/var{emailhost}/pop3" RS = ORS = "\r\n" print "user var{name}" |& POPService POPService |& getline print "pass var{password}" |& POPService POPService |& getline print "retr 1" |& POPService POPService |& getline if ($1 != "+OK") exit print "quit" |& POPService RS = "\r\n\\.\r\n" POPService |& getline print $0 close(POPService) }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件