Skip to content

Instantly share code, notes, and snippets.

@byrnedo
Created February 15, 2021 13:05
Show Gist options
  • Save byrnedo/8452987bd1eeedded955ee939c173163 to your computer and use it in GitHub Desktop.
Save byrnedo/8452987bd1eeedded955ee939c173163 to your computer and use it in GitHub Desktop.
Fill terminal input and return to interactive
#!/bin/bash
# Sends foo bar and baz then back to you
(printf 'foo\nbar\nbaz\n' && cat) | $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment