This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set VarName= | |
REM 関数内で第1引数の値を第2引数の名前の変数にセット | |
call :Func1 "ABC" VarName | |
echo Parent1: %VarName% | |
REM 関数内で第1引数の値を第2引数の名前の変数にセット |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM OKパターン | |
call :RetOK 300 gRet3 gRet4 | |
echo RetOK %gRet3% : %gRet4% | |
REM NGパターン | |
call :RetNG 100 gRet1 gRet2 | |
echo RetNG %gRet1% : %gRet2% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Hello" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# use access command | |
#GETCMD='curl' | |
#GETCMD='wget -q -O -' | |
GETCMD='fetch -q -o -' | |
# analyze options | |
OPTION=1n | |
case "$1" in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CMDNAME=`basename $0` | |
VERSION=0.1 | |
# command help | |
usage() { | |
cat <<- END 1>&2 | |
$CMDNAME [-adv] [-l depth] [-p pattern] [path] | |
-a print all files. default, not print hide files (pattern:"/\..*") | |
-d print only directory. default, print all type files(file, dir, link) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# base url | |
GGL_URL='https://www.google.co.jp/' | |
WIKI_URL='https://ja.wikipedia.org/wiki/' | |
# analyze params | |
BROWSER_CMD=w3m | |
BROWSER_OPT="-F" # enable frame page | |
AT_LINE="+3" # cursol position when startup w3m | |
QUERY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# real path of dotfiles directory | |
DOT_PATH=~/.dotfiles | |
CMD_NAME=`basename $0` | |
# link to $DOTPATH/.* from $HOME/.* | |
for f in .??* * | |
do | |
# ignore patterns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
UIM_SET_FILE=$UIM_FEP_SETMODE | |
[ ! -w "$UIM_SET_FILE" ] && exit 1 | |
if [ $1 -eq 1 ]; then | |
echo 1 > $UIM_SET_FILE | |
else | |
echo 0 > $UIM_SET_FILE | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -z $XMODIFIERS ]; then | |
# on CUI | |
UIM_SET_FILE=$UIM_FEP_SETMODE | |
[ ! -w "$UIM_SET_FILE" ] && exit 1 | |
if [ $1 -eq 1 ]; then | |
echo 1 > $UIM_SET_FILE | |
else |
OlderNewer