@[email protected] to [email protected] • 3 years agoOutput file to stdin while removing it?message-square4fedilinkarrow-up13arrow-down11file-text
arrow-up12arrow-down1message-squareOutput file to stdin while removing it?@[email protected] to [email protected] • 3 years agomessage-square4fedilinkfile-text
Hey, does anybody know is there a way to remove a file while read? Something like: rm file.txt -o - | cat - ?
minus-square@[email protected]linkfedilink2•3 years agowhy not just read the file, then remove it: cat file.txt && rm file.txt Not that I understand why you would want to do this anyway; it kind of doesn’t make any sense.
minus-square@[email protected]OPlinkfedilink1•3 years agoJust courious, it’s not something that will be useful, thanks.
why not just read the file, then remove it:
Not that I understand why you would want to do this anyway; it kind of doesn’t make any sense.
Just courious, it’s not something that will be useful, thanks.