ain$ \curl -sSL https://get.rvm.io | bash
Unknown option: n
Unknown option: 1
Usage: head [-options] <url>...
-m <method> use method for the request (default is 'HEAD')
-f make request even if head believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
BASH 3.2.25 required (you have 4.3.18(1)-release)
Bash๋ ์ด์ ์ Mac OS X 10.9.4
์ ํจ๊ป ์ ๊ณต๋๋ ๊ธฐ๋ณธ๊ฐ์ด์์ต๋๋ค. version 4.3.18(1)-release (x86_64-apple-darwin13.2.0)
์
๊ทธ๋ ์ด๋ํ์ง๋ง ์ค๋ฅ๊ฐ ์ง์๋ฉ๋๋ค.
์ด์จ๋ ์ค์น๊ฐ ๋ ์ ์์ ์ผ๋ก ์คํจํด์ผ ํฉ๋๋ค.
ํด๊ฒฐ ๋ฐฉ๋ฒ:
curl -Lk get.rvm.io -o rvm-installer
chmod +x rvm-installer
./rvm-installer
rvm
์ฌ์ฉ ๊ฐ๋ฅ: source /Users/[username]/.rvm/scripts/rvm
๋น๊ตํ ์ ์์ต๋๊น?
$ printf "1\n2\n" | \head -n1
1
๋
$ printf "1\n2\n" | \command \head -n1
1
์๋ต ์์ด 2์ฃผ๊ฐ ์ง๋ฌ์ต๋๋ค. ํฐ์ผ์ ๋ซ์์ต๋๋ค. ์์ธํ ๋ด์ฉ์ ์๋ ค์ฃผ์๋ฉด ๋ค์ ์ด๊ฒ ์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
ํด๊ฒฐ ๋ฐฉ๋ฒ:
curl -Lk get.rvm.io -o rvm-installer
chmod +x rvm-installer
./rvm-installer
rvm
์ฌ์ฉ ๊ฐ๋ฅ:source /Users/[username]/.rvm/scripts/rvm