Hướng dẫn dùng sed newline python
Ngày đăng:
03/09/2022
Trả lời:
0
Lượt xem:
13
I am having an issue with newlines in my command which involves the use of The scenario is as follows. When I execute the following command from Bash, I get:
As you can see, the Now, I am calling this bash command from Python. Here is a small snippet of my code containing all relevant library imports.
The problem is that I get:
on one line. It appears that the '\n' is not processed as the letter n is printed before PH. I need to get the output nicely printed so that I can later add I would appreciate some help from the Bash-and-Python gurus out there. Thank you. |