4 ms·
set output (echo captured) echo $output > captured And if you wanna run a command in another dir: pushd other_dir run_command popd
by lytedev 4y ago
set output (echo captured)
echo $output
> captured
And if you wanna run a command in another dir:
pushd other_dir
run_command
popd