How can i format the output of stat expression in Linux Gnome Terminal?
问题 I am really newbie in Linux(Fedora-20) and I am trying to learn basics I have the following command echo "`stat -c "The file "%n" was modified on ""%y" *Des*`" This command returns me this output The file Desktop was modified on 2014-11-01 18:23:29.410148517 +0000 I want to format it as this: The file Desktop was modified on 2014-11-01 at 18:23 How can I do this? 回答1: You can't really do that with stat (unless you have a smart version of stat I'm not aware of). With date Very likely, your