Il 30/06/22 14:04, Kenny McCormack ha scritto:
> OP has not stated what his actual goal is, so we don't know anything
> about what the actual use case is.
$ tree dir | cat >> commands-output
After a few days (in which I will have forgotten what I did exactly, in
which I forgot the command I have in given...)
$ cat commands-output
dir
├── a
├── b
└── c
The output refers to what?
Or rather, Output refers to which command?
So at the first line I would have liked to have the reference command,
and then everything else.
Example
$ cat commands-output
REFERENCE COMMAND: $ tree dir
dir
├── a
├── b
└── c
It can be done?
-----BEGIN PGP MESSAGE-----
hQGMAyHa6HqE1N3qAQwAivFYgm6kp+JCAOLdqF8HrJIEGO/bGqPpxzKGSlBURMAd
tMmrZ5R66x6UhHCfV26+8+4R53A9a0cqCFZdM1imSorGA0A0vRLbz3AQATvR7Cf4
t5/MLKC4v8vHPKU8NA2ny+qaEBuLSPfiidPemqjRN8nLWUqUDh1sxevY8avYNp2L
C8B1uTrDTGSG7Al7D7QacZP00WvfTI8JtgVeG+6aFwEJy+3SLMp/WqFdK18Vp/IL
tgWDyIL1PMvcvA+GFlWCt9P/ULYBOfnqhfvGbkSFCBXwzRRvPxqy0BTARZm2hNRU
4fKHRj++msAW6BihU3kkTq95H/mfAn1RIwIqwX6bF7s/DprdqUtJ5Bx6H79dM6A4
hQyieK3oGdLuWtWxoxLu8akYuwJOJPy9vhqsPGIcTdT3109yg1CUfz+URZaF7HPo
dXKk8fbHVlyhOZ2MrURWxCAjo1ngg3F58Xx1jf3rpXa3xCKHmDLnJUGcYoVd59wh
LeeRHNrGoNr8ST0ipGsF0pYB/QLCDT/aXxIBC31We5eqNhGUgseh8ZqYKfWiU0sj
E90+En2dADXGj5N/UkDr6xMoylDsO94a7FMxQZ07H5UVihYvGBaqtrnU4uMLOGs9
nle7QFLT5toWutoh44bZgeXkMsw1BAzijpg/FByro5pudb9qEum//KTDmGt+HaXd
hjokxZtlFYPOOXmEUQO3XvMnayu+Vt4=
=jI13
-----END PGP MESSAGE-----