Bash vs Python
by - Thursday, January 1, 1970 at 12:00 AM
HI folks. I am interested in one question. Can Bash completely replace Python? I am good at Bash and have no desire to learn the huge Python library. Requests? No thnx, I have curl. Work with bytes? Sure, use echo -e. I have all the Linux tools at my disposal. But at the same time, I feel inferior not being able to write a Python script.

I don't want to python3 -c "import requests;resp = requests.get("ololo", lalala); print(resp.text)" or smthn like that I don't know that syntax. I want curl ololo and done :)

Have any of you completely replace Python with Bash and not worried about it?
Reply
I think bash and python can't put at the same level to compare, one is promgram language, one is a command to help you to controll your system.

And sometimes if you want to quick to achive a target, python may faster than bash, because it has a lot of package.
Reply
If I work on complicated tasks, I will start writing python script. It's easy to complete my work.
Secondly, Python has many packages you can install, you don't want to start from scratch with Bash, right?
Reply
(October 28, 2022, 10:45 AM)lee98064 Wrote: I think bash and python can't put at the same level to compare, one is promgram language, one is a command to help you to controll your system.

And sometimes if you want to quick to achive a target, python may faster than bash, because it has a lot of package.


When I want to do something quick I'll use Bash


(October 28, 2022, 06:27 PM)awakenseal Wrote: If I work on complicated tasks, I will start writing python script. It's easy to complete my work.
Secondly, Python has many packages you can install, you don't want to start from scratch with Bash, right?


Bash is more universal and fast. For Python you need to learn all this libraries, you need to have interpreter, but in Bash you can use all system tools and do it from script file or directly from terminal.
Reply


 Users viewing this thread: Bash vs Python: No users currently viewing.