5
(最新のファイルではなく)最新のディレクトリを取得します
私のフォルダparentには次のコンテンツがあります: A.Folder B.Folder C.File 内部にはフォルダーとファイルの両方があります。B.Folderより新しいです。取得したいのですがB.Folder、どうすればこれを達成できますか?これを試した ls -ltr ./parent | grep '^d' | tail -1 しかしそれは私に与えますdrwxrwxr-x 2 user user 4096 Jun 13 10:53 B.Folderが、私はただ名前が必要B.Folderです。
15
shell
files
ls
timestamps