Aral Balkan on Nostr: You’re on a linux-y machine and you want to convert tabs in a file to spaces (say, ...
You’re on a linux-y machine and you want to convert tabs in a file to spaces (say, two) and your editor doesn’t support that (hello, Helix 👀):
expand my.file -t 2 > my.file.tmp && rm my.file.tmp && mv my.file.tmp my.file
(Updated as original version just deletes the original file.) 🤦♂️
#linux #terminal #tabs #spaces #dev
expand my.file -t 2 > my.file.tmp && rm my.file.tmp && mv my.file.tmp my.file
(Updated as original version just deletes the original file.) 🤦♂️
#linux #terminal #tabs #spaces #dev