Skip to content

Commit

Permalink
Update Shorts “2024-09-30-til-tac-command/index”
Browse files Browse the repository at this point in the history
  • Loading branch information
elpachongco committed Oct 1, 2024
1 parent c4c1eab commit acc690c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/shorts/2024-09-30-til-tac-command/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ date: 2024-09-30T09:20:00.000+08:00
draft: false
featured: false
---
\`tac\` is like \`cat\` but the output is reversed.
`tac` is like `cat` but the output is reversed.

I used it for finding the most recent error log:

\`\``
```
tac err.log | grep -m 1 ERROR
\`\``
```

[source](https://www.unix.com/shell-programming-and-scripting/140254-grep-only-last-occurred-error-error-log.html)

0 comments on commit acc690c

Please sign in to comment.