Alex on Nostr: TIL that in vim you can pipe text to any shell command. This came in very useful for ...
TIL that in vim you can pipe text to any shell command. This came in very useful for sorting lines of text by piping it to the `sort` command. You can even use arguments like `-u` (unique lines). Just select the text, then enter ":!sort".
#linux #shell #vim #homelab
Published at
2024-07-13 21:14:16Event JSON
{
"id": "1e43b40908012e8c097791e5ee150b253821a9b935e26e354d4e3a38e5b04b05",
"pubkey": "9840495fa3f426df5ee9dcac0c83baae646d74f75f8c70a775d7ee4169fb31be",
"created_at": 1720905256,
"kind": 1,
"tags": [
[
"t",
"Linux"
],
[
"t",
"Shell"
],
[
"t",
"vim"
],
[
"t",
"homelab"
],
[
"proxy",
"https://swiss.social/users/lx/statuses/112781246905016842",
"activitypub"
]
],
"content": "TIL that in vim you can pipe text to any shell command. This came in very useful for sorting lines of text by piping it to the `sort` command. You can even use arguments like `-u` (unique lines). Just select the text, then enter \":!sort\".\n#linux #shell #vim #homelab",
"sig": "d72c7ba1df1220b28a2d1c65dad6639f88a6b145f260f84c5bc007a87dbc08645d59a71a972783000966e3748d2caec31187521cc6528b8b494b35ae7d1f2bb8"
}