文件操作 - sos.aug
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/share/augeas/lenses/dist/sos.aug
编辑文件内容
(* Module: Sos Parses Anaconda's user interaction configuration files. Author: George Hansper <george@hansper.id.au> About: Reference https://github.com/hercules-team/augeas/wiki/Generic-modules-IniFile https://github.com/sosreport/sos About: Configuration file This lens applies to /etc/sos/sos.conf About: License This file is licensed under the LGPL v2+, like the rest of Augeas. *) module Sos = autoload xfm let comment = IniFile.comment "#" "#" let sep = IniFile.sep "=" "=" let entry = IniFile.entry IniFile.entry_re sep comment let title = IniFile.title IniFile.record_re let record = IniFile.record title entry let lns = IniFile.lns record comment let filter = ( incl "/etc/sos/sos.conf" ) . ( Util.stdexcl ) let xfm = transform lns filter
修改文件时间
将文件时间修改为当前时间的前一年
删除文件