When running 'look' to get all comments in a file I only get the first found line in the ouput. Can someone explain this?
look "#" .zshrc
There are really a lot more comments (lines starting with '#') in my .zshrc then the first line.
look "#" .zshrc
There are really a lot more comments (lines starting with '#') in my .zshrc then the first line.
> As look performs a binary search, the lines in file must be sorted...
I assume you didn't sort your source file first.
sort ~/.zshrc -o /tmp/.zshrc
look "#" /tmp/.zshrc
Sorry for the noise but I am confused... :|
Try setting LC_COLLATE=C and export it and retry.
Thanks for this answer...