Skip to content

Instantly share code, notes, and snippets.

@rustyio
Created June 17, 2010 23:05
Show Gist options
  • Select an option

  • Save rustyio/442928 to your computer and use it in GitHub Desktop.

Select an option

Save rustyio/442928 to your computer and use it in GitHub Desktop.
#!/bin/bash
while IFS= read -r -n1 c
do
for screen in $@
do
if [ "$c" == "" ]; then
screen -fn -X at $screen stuff $'\012'
else
screen -fn -X at $screen stuff $"$c"
fi
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment