shark_byte@lemmy.zip to Programmer Humor@programming.dev · 13 hours agoLinux Catlemmy.zipexternal-linkmessage-square42fedilinkarrow-up1298file-text
arrow-up1298external-linkLinux Catlemmy.zipshark_byte@lemmy.zip to Programmer Humor@programming.dev · 13 hours agomessage-square42fedilinkfile-text
minus-squaredan@upvote.aulinkfedilinkarrow-up9·edit-26 hours agoAdmittedly I still use cat for this. This also works too, but it’s more verbose: echo "$(<foo.txt)" It’s mentioned in the Bash man pages: The command substitution $(cat file) can be replaced by the equivalent but faster $(< file).
Admittedly I still use
catfor this.This also works too, but it’s more verbose:
echo "$(<foo.txt)"It’s mentioned in the Bash man pages: