Redirect the output to two different files, One should have new output whenever the commands execute and the other should have both new & old content.
For example:
openstack port create --network testnetwork1 test1-subport110 --disable-port-security --no-security-group
I need to redirect output into 2 different file. File A.txt and B.txt. Whenever executed the openstack port create command the new output should be in A.txt and old & new output should be in B.txt.
I want like below,
cat A.txt
port2UUID
cat B.txt
port1.UUID
port2.UUID
Kindly help me. Thanks in advance