Detlev Zundel on Nostr: Did you ever wish to narrow down the content that you are currently looking at in the ...
Did you ever wish to narrow down the content that you are currently looking at in the less pager to lines matching a regular expression?
Turns out that pressing '&' and entering the regexp is all that is required to do this.
Just use an empty regexp to widen the view again, i.e. '&<enter>'
You are welcome! 😉
#linux #cmdline #less
Published at
2024-07-24 12:19:51Event JSON
{
"id": "89c4bc553d8a1830c6da48bbcbed3be33bdc19f92d82fd61514ac9610d92df8b",
"pubkey": "c29ea1d82569c30f40f0f5bb86c7da225b6a3b7ea003389dd8a08046fe85672c",
"created_at": 1721823591,
"kind": 1,
"tags": [
[
"t",
"linux"
],
[
"t",
"cmdline"
],
[
"t",
"less"
],
[
"proxy",
"https://hostsharing.coop/users/dzu/statuses/112841430879504999",
"activitypub"
]
],
"content": "Did you ever wish to narrow down the content that you are currently looking at in the less pager to lines matching a regular expression?\n\nTurns out that pressing '\u0026' and entering the regexp is all that is required to do this.\n\nJust use an empty regexp to widen the view again, i.e. '\u0026\u003center\u003e'\n\nYou are welcome! 😉 \n \n#linux #cmdline #less",
"sig": "63f95c0c62e290b257273470c0018d590910927419d0ae2237c5bd31b53707f09f492bd52b4f58ba6d998f85a5d805d74ecef17ec7e5498ab02dd80332b176f9"
}