One option would be to pipe the command output to a variable or file, that way it would be easily referenced inside your script, and much easier than trying to copy paste terminal output (shift+Ctrl+c to copy shift+Ctrl+v to paste).