0

If I run the following in console:

wp plugin list --update=available

I get:

+--------+--------+-----------+---------+
| name   | status | update    | version |
+--------+--------+-----------+---------+
| wp-cfm | active | available | 1.5     |
+--------+--------+-----------+---------+

If I run the following in console:

wp plugin list --update=available  >> tmpcheck/wp_update_results.txt

I get the following in the wp_update_results.txt:

name    status  update  version wp-cfm  active  available   1.5

How can I have it so that the txt file that is written maintains the table structure from the command line?

  • Welcome to WordPress Stack EXchange! Unfortunately your question appears to be off-topic for here, since it's a question about Bash or whatever shell you are using. Please ask it on Stack Overflow instead. Many thanks – leymannx Jun 8 at 6:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.