Skip to content

Commit

Permalink
fix titles
Browse files Browse the repository at this point in the history
  • Loading branch information
sh4869 committed Dec 8, 2021
1 parent a83862f commit dcf4b35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions content/memo/2021-02-14-get-latest-log.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
title: 最新のlogファイルを取りたい
title: 日時がファイル名になっているときに最新のファイルを取りたい
date: 2021-02-14
---

`log_YYYYMMDD_HHmmss.log`というログファイルがたくさんあるときに最新のファイルをlessしたい。
`log_YYYYMMDD_HHmmss.log`というログファイルがたくさんあるときに最新のファイルをlessしたい場合は

```
less (ls -tr1 log_*.log | tail -n 1)
```
```

でOK。
2 changes: 1 addition & 1 deletion content/memo/2021-02-15-subtime-in-ruby.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 時間の差分を取る
title: 時間の差分を取るrubyの関数
date: 2021-02-15
---

Expand Down

0 comments on commit dcf4b35

Please sign in to comment.