Rigolo/tv-grab-file
♨ 카랜더 일정 :
링크
첨부
컨텐츠 정보
- 10,193 조회
본문
/tv-grab-file
https://github.com/Rigolo/tv-grab-file/blob/master/tv_grab_file
#!/bin/bash | |
dflag= | |
vflag= | |
cflag= | |
if (( $# < 1 )) | |
then | |
cat ~/.xmltv/tv_grab_file.xmltv | |
exit 0 | |
fi | |
for arg | |
do | |
delim="" | |
case "$arg" in | |
#translate --gnu-long-options to -g (short options) | |
--description) args="${args}-d ";; | |
--version) args="${args}-v ";; | |
--capabilities) args="${args}-c ";; | |
#pass through anything else | |
*) [[ "${arg:0:1}" == "-" ]] || delim="\"" | |
args="${args}${delim}${arg}${delim} ";; | |
esac | |
done | |
#Reset the positional parameters to the short options | |
eval set -- $args | |
while getopts "dvc" option | |
do | |
case $option in | |
d) dflag=1;; | |
v) vflag=1;; | |
c) cflag=1;; | |
\?) printf "unknown option: -%s\n" $OPTARG | |
printf "Usage: %s: [--description] [--version] [--capabilities] \n" $(basename $0) | |
exit 2 | |
;; | |
esac >&2 | |
done | |
if [ "$dflag" ] | |
then | |
printf "tv_grab_file is a simple grabber that just read the ~/.xmltv/tv_grab_file.xmltv file\n" | |
fi | |
if [ "$vflag" ] | |
then | |
printf "0.1\n" | |
fi | |
if [ "$cflag" ] | |
then | |
printf "baseline\n" | |
fi | |
exit 0 | |
◎ ■ ▶ ☞ ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다. https://11q.kr ♠
뷰PDF 1,2
office view
관련자료
-
첨부
댓글목록
등록된 댓글이 없습니다.