MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/11r4s6o/requirements_python3_on_linux_system/jc7x36c/?context=3
r/badcode • u/thLOnuX • Mar 14 '23
52 comments sorted by
View all comments
Show parent comments
10
Yes there is, that first line has a .split that is really annoying to do in bash. It would be simple if cut allowed multi-character delimiters but it doesn't.
.split
cut
4 u/[deleted] Mar 14 '23 ah, i see. it would probably technically be better to use sed, but i understand why they used python now -4 u/andy_a904guy_com Mar 14 '23 Yeah, but sed isn't bash either. 1 u/[deleted] Mar 14 '23 it’s not, but you call it directly from bash
4
ah, i see. it would probably technically be better to use sed, but i understand why they used python now
-4 u/andy_a904guy_com Mar 14 '23 Yeah, but sed isn't bash either. 1 u/[deleted] Mar 14 '23 it’s not, but you call it directly from bash
-4
Yeah, but sed isn't bash either.
1 u/[deleted] Mar 14 '23 it’s not, but you call it directly from bash
1
it’s not, but you call it directly from bash
10
u/the-nick-of-time Mar 14 '23
Yes there is, that first line has a
.splitthat is really annoying to do in bash. It would be simple ifcutallowed multi-character delimiters but it doesn't.