文件操作 - simple.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/gettext-3.4.9/test/fixtures/simple.rb
编辑文件内容
# -*- coding: utf-8 -*- require 'gettext' class Simple include GetText bindtextdomain("test1", :path => Helper::Path.locale_path) def test _("language") end def test_formatted_string _("one is %d.") % 1 end def test_plural n_("There is an apple.", "There are %{num} apples.", 5) % {:num => 5} end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件