diff options
| author | typebrook <typebrook@gmail.com> | 2020-06-03 01:40:56 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-06-03 01:40:56 +0800 |
| commit | 495883372a64744e6cf0ac98c4eb5ccd57ce87fb (patch) | |
| tree | 53fdd5f4733d7a42fb2310c284686ceb4d29d4be | |
| parent | 63f1070a5c54ad10bf73adb37a0bbd1bcc47b21c (diff) | |
Fix tac function
| -rwxr-xr-x | gist | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -93,9 +93,9 @@ tmp_file() { | |||
| 93 | } | 93 | } |
| 94 | tac() { | 94 | tac() { |
| 95 | if [[ $(uname) == Darwin ]]; then | 95 | if [[ $(uname) == Darwin ]]; then |
| 96 | tail -r | 96 | tail -r $1 |
| 97 | else | 97 | else |
| 98 | $(which tac) | 98 | $(which tac) $1 |
| 99 | fi | 99 | fi |
| 100 | } | 100 | } |
| 101 | mtime() { | 101 | mtime() { |