screenã«ååãã¤ãã¦ä½¿ãã¨ãã«ããã®ååã®screenãããããªããããã£ãã¨ãã¦ãã©ã£ãã«attachããã¦ãããdetachããã¦ããããªã©ãèããå¿ è¦ããã£ã¦ãå°ãä¸ä¾¿ã ã£ãã®ã§ããªãã¨ãããã
#! /bin/sh s () { if [ -n "$1" ]; then screen -x $1 || screen -r $1 || screen -S $1 else echo "usage: s screen_name" return 1 fi }
ããã§ã
% s test
ããã¨ãå¿ ãtestã¨ããååã®screenã使ããã