I want to save the command line output data in a text file. I am running macOS High Sierra 10.13.6. The problem is, it has some graphical output which I don't want to store. What I need is, only the strings and their corresponding values. Could you help me please?
The shell command I am running is:
pwmetrics http://www.cnn.com --runs=1
And the output shown in the Terminal is:
This tool to generate web page performance metrics is open source. Here is the error I am getting while I try to save my code:
o.txt file contains nothing.
The shell command I have tried so far are:
pwmetrics http://www.ieee.org --runs=2 &> /Users/ssr/Desktop/o.txt pwmetrics http://www.ieee.org 2>/dev/null | tee /Users/ssr/Desktop/o.txt pwmetrics http://www.ieee.org yes>/dev/null | tee /Users/ssr/Desktop/o.txt