Reputation: 5658
I've seen several programmers using ./lessfilter filtes for preprocessing files before being feeded to less. However my less doesn't seem to recognize my .lessfilter file in ~. What am I doing wrong? My manpage of less doesn't mention it.
$ less —version
less 481 (POSIX regular expressions)
Copyright (C) 1984-2015 Mark Nudelman
Upvotes: 3
Views: 2209
Reputation: 54583
Noting the comment: the less
manual page does not mention .lessfilter
, and it is not a feature of less
(see source code).
Instead, it is used in some examples which set the LESSOPEN
variable to a script. Here are a few places where that is mentioned:
So you may have seen this feature in a Fedora package, or seen someone using it based on the several places it was described, but it is not generally part of less
.
Upvotes: 5