Vic on Nostr: Listing filenames present in one directory that dont exist in another: ls -w 1 /path1 ...
Listing filenames present in one directory that dont exist in another:
ls -w 1 /path1 | grep -vxFf <(ls -w 1 /path2)
Got a better way? Reply below and I'll #zap you
#asknostr #plebchain #midnightoil
Published at
2023-08-21 02:58:42Event JSON
{
"id": "8e303cd829bf9dece37d004d4958f1fb1dea4d831c29975d00450a48805f9e6c",
"pubkey": "21b419102da8fc0ba90484aec934bf55b7abcf75eedb39124e8d75e491f41a5e",
"created_at": 1692586722,
"kind": 1,
"tags": [
[
"t",
"zap"
],
[
"t",
"zap"
],
[
"t",
"asknostr"
],
[
"t",
"asknostr"
],
[
"t",
"plebchain"
],
[
"t",
"plebchain"
],
[
"t",
"midnightoil"
],
[
"t",
"midnightoil"
]
],
"content": "Listing filenames present in one directory that dont exist in another:\n\nls -w 1 /path1 | grep -vxFf \u003c(ls -w 1 /path2)\n\nGot a better way? Reply below and I'll #zap you\n\n#asknostr #plebchain #midnightoil",
"sig": "cf4283b4b0c875c67fe93134400c53fbd138cc0914e27c4b2476e1e85ea5f1223fbe46e0d353332a8b7f50c73e6e6291b3821887947f1011805871e6aa46de2f"
}