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.
1 Antwort
+ 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")