@majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish • 17 days agoHow dare you use a text editor because it's easy to uselemmy.fosshost.comimagemessage-square330fedilinkarrow-up1858arrow-down157
arrow-up1801arrow-down1imageHow dare you use a text editor because it's easy to uselemmy.fosshost.com@majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish • 17 days agomessage-square330fedilink
minus-square@datelmd5sum@lemmy.worldlinkfedilink7•17 days agocat pipeing is safer though. foobar > file and your file is gone.
minus-square@wise_pancake@lemmy.calinkfedilink2•16 days agoYou can always alias > to < in your shell.
minus-square@Trail@lemmy.worldlinkfedilink2•17 days agoHuh does that actually work? Don’t have a system handy to try it out.
minus-square@lemmesay@discuss.tchncs.delinkfedilink4•17 days 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 >
minus-squareJackbyDevlinkfedilinkEnglish2•17 days 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.
cat pipeing is safer though.
foobar > file and your file is gone.
You can always alias
>
to<
in your shell.Get out!
<file foobar
Huh does that actually work? Don’t have a system handy to try it out.
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 >
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.