Hacker News new | ask | show | jobs
by adamhepner 3109 days ago
Great! What I couldn't find is: is it possible to get output from one command and store it as variable for use in another command? My example is simple: I need to get a token once, and then provide it as a header to all subsequent requests. The bugger is unfortunately valid only for a limited amount of time (some 10 minutes), which makes exploration a bit tricky, and I don't particularly like running search and replace all the time...