Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tail: invalid option -- 'r' #3

Open
zhanxw opened this issue May 26, 2014 · 3 comments
Open

tail: invalid option -- 'r' #3

zhanxw opened this issue May 26, 2014 · 3 comments

Comments

@zhanxw
Copy link

zhanxw commented May 26, 2014

tail 8.13 does not support "-r" option.

~> alias gitjk="history 10 | tail -r | gitjk_cmd"
~> gitjk
tail: invalid option -- 'r'
Try `tail --help' for more information.

@mapmeld
Copy link
Owner

mapmeld commented May 26, 2014

we just updated the README to fix this - newer versions of Linux should use a different alias

alias gitjk="history 10 | tac | gitjk_cmd"

@martijnengler
Copy link

OS X still mentions the tail command. On 10.9 Mavericks at least, I need to use tac.

@GameGamer43
Copy link

On OS X Mavericks I had to use the following:

alias gitjk="history | tail -r -n 10 | gitjk_cmd"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants