Tom :debian: on Nostr: I like to make my bash scripts as efficient as possible, but they just confuse me ...
I like to make my bash scripts as efficient as possible, but they just confuse me when I come back and look at them later.
Completely forgot you could cat multiple files and it auto merges them all:
cat -v file.a file.b file.c > merged.file
Also didn't even realise I used -v, spent a lot of time going through pages and converting non-printable characters.
Published at
2024-04-17 10:23:18Event JSON
{
"id": "e40ef9e0adedaf7fd3cefaef003aac916e00166e8029ffb60977a7f52d470b5e",
"pubkey": "52f2f04ec85cc265915437de6adbc57c97d2d43635cc8a545238aa89dae8a874",
"created_at": 1713349398,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/tripplehelix/statuses/112286066169022692",
"activitypub"
]
],
"content": "I like to make my bash scripts as efficient as possible, but they just confuse me when I come back and look at them later.\n\nCompletely forgot you could cat multiple files and it auto merges them all:\n\ncat -v file.a file.b file.c \u003e merged.file\n\nAlso didn't even realise I used -v, spent a lot of time going through pages and converting non-printable characters.",
"sig": "cf1f8fc37d9d8f0f101d318aa0b5c8f635629f19ab82a3a932591cc9b1bd5cda1079606669624f4053650847c049f61dd04bbb2f38701dafc508f5e9e6eb129d"
}