cap

From wikieduonline
Revision as of 10:05, 19 January 2023 by Welcome (talk | contribs) (Created page with "{{lc}} # capture the output of a command so it can be retrieved with ret cap () { tee /tmp/capture.out; } # return the output of the most recent command that was captured...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

# capture the output of a command so it can be retrieved with ret
cap () { tee /tmp/capture.out; }

# return the output of the most recent command that was captured by cap
ret () { cat /tmp/capture.out; }

Advertising: