Skip to content

Instantly share code, notes, and snippets.

@rustyio
Created June 17, 2010 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rustyio/442928 to your computer and use it in GitHub Desktop.
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