在包含以下内容的文件中:
...
18-11-2018:othercharacters
10-11-2018:othercharacters
03-10-2018:othercharacters
30-10-2018:othercharacters
27-09-2018:othercharacters
03-12-2018:othercharacters
...
Run Code Online (Sandbox Code Playgroud)
命令 :
sort -t- -k2 -k1
Run Code Online (Sandbox Code Playgroud)
不按日期排序,我错过了什么?
I am not using two users nor do I open root or something . I open terminal, and I only exit after the second exit command.
This is my .bashrc
file:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See …
Run Code Online (Sandbox Code Playgroud)