1 of 3

BASH: how to write an output of one command into file

let's say we got a content of the following command in bash, which consists of several rows, and just one column:

tacmd listsystems | grep -i $i | awk '{print $1}'

This content is a list of offline machines you got on a server and you want to write it into the file e.g. offline.lst, in order to remove offline entries on a server from that file.

Please advise, how to write this specific content into offline.lst ?

Thank you.