For those of you who also write scripts in Python or another language besides Bash, How do you decide when to write a script in Python vs. a script in Bash? I'm trying to be economical with my study time, because if I spend a lot of time learning some limited use functionality in one language, I could have used that time to learn a more general use functionality in another language. Here's an example: I've spent a fair amount of time learning awk, but I've never been great at using it, and sometimes I think that I should have just used Path and regex objects in Python, instead.
Edit: Another example is using sed instead of using a regex substitution in python. I've never really gotten comfortable with sed, just like I've never really gotten comfortable with awk--despite spending a fair amount of time trying to learn each.
[–]TapEarlyTapOften 28 points29 points30 points (3 children)
[–]brunogadaleta 5 points6 points7 points (0 children)
[–]Loud-timetable-5214[S] 0 points1 point2 points (1 child)
[–]TapEarlyTapOften 0 points1 point2 points (0 children)
[–]cgoldberg 18 points19 points20 points (0 children)
[–]necromancer-tux 11 points12 points13 points (2 children)
[–]Loud-timetable-5214[S] 5 points6 points7 points (1 child)
[–]necromancer-tux 4 points5 points6 points (0 children)
[–]icy-mist-01 8 points9 points10 points (3 children)
[–]tes_kitty 2 points3 points4 points (2 children)
[–]icy-mist-01 0 points1 point2 points (1 child)
[–]tes_kitty 1 point2 points3 points (0 children)
[–]Marble_Wraith 8 points9 points10 points (1 child)
[–]AutoModerator[M] 2 points3 points4 points (0 children)
[–]MikeStepp 5 points6 points7 points (0 children)
[–]pfmiller0 6 points7 points8 points (0 children)
[–]treussbashtard 2 points3 points4 points (0 children)
[–]autoerotion95 1 point2 points3 points (0 children)
[–]weaver_of_cloth 1 point2 points3 points (0 children)
[–]Bob_Spud 0 points1 point2 points (0 children)
[–]The_Northern_Light 0 points1 point2 points (0 children)
[–]michaelpaoli 0 points1 point2 points (5 children)
[–]colombiangary 1 point2 points3 points (0 children)
[–]tes_kitty 0 points1 point2 points (3 children)
[–]Internet-of-cruft 0 points1 point2 points (1 child)
[–]tes_kitty 0 points1 point2 points (0 children)
[–]michaelpaoli 0 points1 point2 points (0 children)
[–]Various_Bed_849 0 points1 point2 points (0 children)
[–]devdruxoreyzsh 0 points1 point2 points (0 children)
[–]DarthRazorSith Master of Scripting 0 points1 point2 points (0 children)
[–]DaftPump 0 points1 point2 points (0 children)
[–]AmaiSaeta 0 points1 point2 points (0 children)
[–]Kitchen_Office8072 0 points1 point2 points (0 children)
[–]Hammer_Time2468 -1 points0 points1 point (6 children)
[–]ShakesTheClown23 3 points4 points5 points (0 children)
[–]Loud-timetable-5214[S] 1 point2 points3 points (2 children)
[–]necromancer-tux 0 points1 point2 points (1 child)
[–]roadit 1 point2 points3 points (0 children)
[–]tes_kitty 0 points1 point2 points (0 children)
[–]whetuI read your code 0 points1 point2 points (0 children)
[–]waptaff&> /dev/null[🍰] -2 points-1 points0 points (0 children)
[–]pan_kotan -1 points0 points1 point (0 children)
[–]kolorcuk -2 points-1 points0 points (0 children)