- 论坛徽章:
- 25
|
回复 1# vipty
- awk '{match($8,"^(.*)/[^/]*$",a);b[a[1]]=$0;c[a[1]]=NR}END{PROCINFO["sorted_in"]="@val_num_asc";for(i in c){print b[i]}}' file
- drwxr-xr-x 2 root root 36864 2018-01-17 11:50:14 /data/fastdfs/storage/store/path0/data/02/FC
- drwxr-xr-x 2 root root 36864 2018-02-26 21:33:14 /data/fastdfs/storage/store/path0/data/03/FC
- drwxr-xr-x 2 root root 36864 2018-03-28 10:14:13 /data/fastdfs/storage/store/path0/data/04/FE
- drwxr-xr-x 2 root root 36864 2018-04-17 12:55:53 /data/fastdfs/storage/store/path0/data/05/E6
- drwxr-xr-x 2 root root 4096 2018-06-26 20:57:02 /data/fastdfs/storage/store/path0/data/09/C5
复制代码 |
|