I\'m looking for a way to use the ouput of a command (say command1) as an argument for another command (say command2).
I encountered this problem when trying to
You can do it like this:
tid=$(tty | sed 's#/dev/##') && who | grep "$tid"