Does not appear to work for BASH 5, as I just get a list of dates. I wonder if the author is on macOS, and is using the pre-installed BASH 3.
Changing the $2 to $4 fixed it for me.
1 100 10% git
2 76 7.6% ls
3 41 4.1% cd
4 37 3.7% list.sh
5 37 3.7% emacsclient
list.sh is a script I wrote to quickly search my calibre library for books in a particular series. e.g., list.sh Justice League shows me all the "Justice League" comics I currently have.
Also, if sudo is in your top 5, then I think there's something wrong with the way you're working. Nobody should need sudo that much.
My tests were on zsh here.
I think you are right about the usage of sudo. I made some sudoers changes after I saw sudo in my own top list. I think for me it was there, because I used it a lot for package updating / installing.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Does not appear to work for BASH 5, as I just get a list of dates. I wonder if the author is on macOS, and is using the pre-installed BASH 3.
Changing the
$2
to$4
fixed it for me.list.sh
is a script I wrote to quickly search my calibre library for books in a particular series. e.g.,list.sh Justice League
shows me all the "Justice League" comics I currently have.Also, if
sudo
is in your top 5, then I think there's something wrong with the way you're working. Nobody should needsudo
that much.My tests were on zsh here.
I think you are right about the usage of
sudo
. I made somesudoers
changes after I saw sudo in my own top list. I think for me it was there, because I used it a lot for package updating / installing.