majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 3 months agoHow dare you use a text editor because it's easy to uselemmy.fosshost.comimagemessage-square319fedilinkarrow-up1640arrow-down147
arrow-up1593arrow-down1imageHow dare you use a text editor because it's easy to uselemmy.fosshost.commajestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 3 months agomessage-square319fedilink
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up2arrow-down1·edit-23 months ago<file foobar
minus-squareTrail@lemmy.worldlinkfedilinkarrow-up1·3 months agoHuh does that actually work? Don’t have a system handy to try it out.
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up2·3 months agoI think so! I think it’s something like < file works anywhere in the line, not just the end. There may be some specifics about no space when it is the front but I don’t remember lol.
minus-squarelemmesay@discuss.tchncs.delinkfedilinkarrow-up2·3 months ago storage/documents/programs ro > echo puts "hello world" > main.rb storage/documents/programs ro via rb > ls c js main.rb python storage/documents/programs ro via rb > < main.rb grep hello puts hello world storage/documents/programs ro via rb >
<file foobar
Huh does that actually work? Don’t have a system handy to try it out.
I think so! I think it’s something like
< file
works anywhere in the line, not just the end. There may be some specifics about no space when it is the front but I don’t remember lol.storage/documents/programs ro > echo puts "hello world" > main.rb storage/documents/programs ro via rb > ls c js main.rb python storage/documents/programs ro via rb > < main.rb grep hello puts hello world storage/documents/programs ro via rb >