How Can I collect data from Ubuntu terminal ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How Can I collect data from Ubuntu terminal ?

I have a python 3 script running on Ubuntu terminal, which gives 4 column and 1000 row data output as a result. Now I need to collect this data.

26th Dec 2018, 8:44 AM
Faisal
1 Answer
+ 6
I think you can use the > operator to redirect the output from the console to a file. > file: helloworld.py print('Hello World') > execute the file in the console: python helloworld.py (console output: "Hello World") > redirect output to a file: python helloworld.py > helloworld.txt (creates a file helloworld.txt with the content "Hello World")
26th Dec 2018, 8:49 AM
Anna
Anna - avatar