Created
June 23, 2010 08:52
-
-
Save oppara/449665 to your computer and use it in GitHub Desktop.
vimのパッチをゲット
This file contains hidden or 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 | |
#----------------------------------------------------------- | |
# Config | |
#----------------------------------------------------------- | |
VERSION='7.2' | |
HOST_NAME="ftp.vim.org" # FTP Server | |
USER_NAME="anonymous" # FTP User | |
PASSWORD="hoge" # FTP Password | |
LOCAL_DIR="" # Local Dir | |
REMOTE_DIR="/pub/vim/patches/${VERSION}" # Remote Dir | |
FILE_NAME="list.txt" | |
LIST_CMD="ls" | |
#----------------------------------------------------------- | |
# Script | |
#----------------------------------------------------------- | |
ftp -pn $HOST_NAME > $FILE_NAME << _EOF_ | |
user $USER_NAME $PASSWORD | |
prompt | |
bin | |
lcd $LOCAL_DIR | |
cd $REMOTE_DIR | |
$LIST_CMD | |
bye | |
_EOF_ | |
# $ LANG=C LANGUAGE=C LC_ALL=C | |
# $ cat list.txt | awk '{print$9}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment