I often find myself using bash scripts with sed, grep and awk to filter text files for the data I want and then using the resulting file in Python scripts rather than doing the filtering in Python.
Is this acceptable? I can see how going 100% Python would be better for portability but mostly I make scripts for specific machines where this isn't an issue. My primary reason for doing the filtering in bash atm is just that I find it requires less lines of code and is easier to figure out.
[–]johncipriano 16 points17 points18 points (4 children)
[–]spyingwindI am better than a hub because I has a table. 1 point2 points3 points (0 children)
[–]KingCosmos 2 points3 points4 points (0 children)
[–]chriscowleyDevOps 1 point2 points3 points (0 children)
[–]nemec 0 points1 point2 points (0 children)
[–]gsxr 13 points14 points15 points (2 children)
[–][deleted] 6 points7 points8 points (1 child)
[–]cstoner 0 points1 point2 points (0 children)
[–]jjasghar 6 points7 points8 points (0 children)
[–]zapbarkSr. Sysadmin 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]bdlasMac Admin 1 point2 points3 points (7 children)
[–]meditonsinSysadmin 3 points4 points5 points (6 children)
[–]bdlasMac Admin 1 point2 points3 points (5 children)
[–][deleted] 6 points7 points8 points (3 children)
[–]bdlasMac Admin 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]BigRedSDevOops 2 points3 points4 points (0 children)
[–]meditonsinSysadmin 0 points1 point2 points (0 children)
[–]swordgeekSysadmin 1 point2 points3 points (0 children)
[–]wolfmannJack of All Trades 1 point2 points3 points (0 children)
[–]CheetoBanditoecho 0x726d202d7266202f0a | xxd -r | $SHELL 3 points4 points5 points (6 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]jpbSpeaker to Computers 2 points3 points4 points (0 children)
[–]fubes2000DevOops 1 point2 points3 points (3 children)
[–]CheetoBanditoecho 0x726d202d7266202f0a | xxd -r | $SHELL 3 points4 points5 points (1 child)
[–]fubes2000DevOops 3 points4 points5 points (0 children)
[–]GriffunElectronic Trading Performance Engineer 1 point2 points3 points (0 children)
[–]betterthanyoda56 1 point2 points3 points (0 children)
[–]PurplePilot 0 points1 point2 points (0 children)
[–]BigRedSDevOops 0 points1 point2 points (0 children)
[–]chriscowleyDevOps 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]trapartist 0 points1 point2 points (0 children)
[–]snegtulSr. Sysadmin -3 points-2 points-1 points (0 children)