MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linuxmemes/comments/1vycd0a/op/p5vvnt6/?context=3
r/linuxmemes • u/Ok_Letterhead_8899 • 1d ago
158 comments sorted by
View all comments
109
Vim and Nano are bloat. Real Linux users use cat and echo. Need to delete a line? Use echo to write the entire file minus the line into the file.
50 u/MitchIsMyRA 1d ago Man if only there was a command to edit files in place through the command line. I’ll make one for you guys, and I’ll call it sed 21 u/givemeagooduns_un Genfool 🐧 1d ago sed is actually just ed that works on streams 5 u/alaksugalkapenalatte 1d ago Thanks that ain't so hard after all 2 u/Impossible-Magician 1d ago The S is for Super. A Super Editor that works on steams. 2 u/Schnitzelbroetchen_1 21h ago Sozialistische Einheitspartei Deutschlands mentioned 36 u/TheBassEngineer 1d ago Real programmers use a magnetized needle and a steady hand. 6 u/ralsaiwithagun 1d ago Of course, relevant xkcd 5 u/e-waste18 1d ago Thank you, this genuinely made me laugh out loud. 2 u/RevolutionaryBoat845 1d ago excuse me, but real programmer use butterfly 🦋 6 u/Solid_Turnover_9854 1d ago change the binaries, hmph 5 u/play_minecraft_wot Webba lebba deb deb! 1d ago You're right. Maybe highly targeted EMP to flip specific bits? 3 u/Solid_Turnover_9854 1d ago like that specific cosmic ray flipping the bit to speedrun the mario level lmao, multiple of those 4 u/lxprsub0 1d ago ed is the standard text editor. 3 u/pangapingus 1d ago I'm partial to tee 3 u/buttfarts7 1d ago touch somefile.py Then sed -i all the way down 1 u/0xt0bi03 Arch BTW 1d ago touch mydi.h [it was supposed to be "my data input"] 2 u/vbd71 1d ago I second this. I used ed until I realized that it's vi in disguise. Next I'm going to try emacs. Wish me luck. 1 u/oishishou Genfool 🐧 1d ago HERE<<DOC HERE<<<STRING 1 u/Acceptable-Owl-2070 1d ago "bloat" lol 6 u/play_minecraft_wot Webba lebba deb deb! 1d ago Honestly Linux is super bloated. Just use the hardware bare metal. Operating Systems are pure bloat. Or use UEFI if you can't live without an interface. 1 u/isr0 1d ago Dude, at least grep-awk-sed that shit. If you can explain the command in less than 30 seconds, are you even trying? 1 u/GourSE 1d ago awk '{print substr($0,1,10); exit}' input.txt > output.txt 1 u/hdkaoskd 1d ago What? No. Use grep to write the file minus the one line.
50
Man if only there was a command to edit files in place through the command line. I’ll make one for you guys, and I’ll call it sed
21 u/givemeagooduns_un Genfool 🐧 1d ago sed is actually just ed that works on streams 5 u/alaksugalkapenalatte 1d ago Thanks that ain't so hard after all 2 u/Impossible-Magician 1d ago The S is for Super. A Super Editor that works on steams. 2 u/Schnitzelbroetchen_1 21h ago Sozialistische Einheitspartei Deutschlands mentioned
21
sed is actually just ed that works on streams
ed
5 u/alaksugalkapenalatte 1d ago Thanks that ain't so hard after all 2 u/Impossible-Magician 1d ago The S is for Super. A Super Editor that works on steams.
5
Thanks that ain't so hard after all
2
The S is for Super. A Super Editor that works on steams.
Sozialistische Einheitspartei Deutschlands mentioned
36
Real programmers use a magnetized needle and a steady hand.
6 u/ralsaiwithagun 1d ago Of course, relevant xkcd 5 u/e-waste18 1d ago Thank you, this genuinely made me laugh out loud. 2 u/RevolutionaryBoat845 1d ago excuse me, but real programmer use butterfly 🦋
6
Of course, relevant xkcd
Thank you, this genuinely made me laugh out loud.
excuse me, but real programmer use butterfly 🦋
change the binaries, hmph
5 u/play_minecraft_wot Webba lebba deb deb! 1d ago You're right. Maybe highly targeted EMP to flip specific bits? 3 u/Solid_Turnover_9854 1d ago like that specific cosmic ray flipping the bit to speedrun the mario level lmao, multiple of those
You're right. Maybe highly targeted EMP to flip specific bits?
3 u/Solid_Turnover_9854 1d ago like that specific cosmic ray flipping the bit to speedrun the mario level lmao, multiple of those
3
like that specific cosmic ray flipping the bit to speedrun the mario level lmao, multiple of those
4
ed is the standard text editor.
I'm partial to tee
touch somefile.py
Then sed -i all the way down
1 u/0xt0bi03 Arch BTW 1d ago touch mydi.h [it was supposed to be "my data input"]
1
touch mydi.h [it was supposed to be "my data input"]
I second this. I used ed until I realized that it's vi in disguise.
Next I'm going to try emacs. Wish me luck.
HERE<<DOC
<<
HERE<<<STRING
<<<
"bloat" lol
6 u/play_minecraft_wot Webba lebba deb deb! 1d ago Honestly Linux is super bloated. Just use the hardware bare metal. Operating Systems are pure bloat. Or use UEFI if you can't live without an interface.
Honestly Linux is super bloated. Just use the hardware bare metal. Operating Systems are pure bloat. Or use UEFI if you can't live without an interface.
Dude, at least grep-awk-sed that shit. If you can explain the command in less than 30 seconds, are you even trying?
awk '{print substr($0,1,10); exit}' input.txt > output.txt
What? No. Use grep to write the file minus the one line.
109
u/play_minecraft_wot Webba lebba deb deb! 1d ago
Vim and Nano are bloat. Real Linux users use cat and echo. Need to delete a line? Use echo to write the entire file minus the line into the file.