Rvm: Bash ๋ฒ„์ „์„ ํ†ตํ•œ ์„ค์น˜ ์‹คํŒจ

์— ๋งŒ๋“  2014๋…„ 07์›” 26์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: rvm/rvm

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) ์—…๊ทธ๋ ˆ์ด๋“œํ–ˆ์ง€๋งŒ ์˜ค๋ฅ˜๊ฐ€ ์ง€์†๋ฉ๋‹ˆ๋‹ค.

์–ด์จŒ๋“  ์„ค์น˜๊ฐ€ ๋” ์ •์ƒ์ ์œผ๋กœ ์‹คํŒจํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

feedback needed

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•:

  1. RVM ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ ๋‹ค์šด๋กœ๋“œ: curl -Lk get.rvm.io -o rvm-installer
  2. ln:12-19์˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ์ œ๊ฑฐํ•˜์—ฌ Bash ๋ฒ„์ „ ํ™•์ธ ๋น„ํ™œ์„ฑํ™”
  3. RVM ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋งŒ๋“ค๊ธฐ: chmod +x rvm-installer
  4. RVM ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ ์‹คํ–‰: ./rvm-installer
  5. rvm ์‚ฌ์šฉ ๊ฐ€๋Šฅ: source /Users/[username]/.rvm/scripts/rvm

๋ชจ๋“  3 ๋Œ“๊ธ€

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•:

  1. RVM ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ ๋‹ค์šด๋กœ๋“œ: curl -Lk get.rvm.io -o rvm-installer
  2. ln:12-19์˜ ์ฃผ์„ ์ฒ˜๋ฆฌ๋ฅผ ์ œ๊ฑฐํ•˜์—ฌ Bash ๋ฒ„์ „ ํ™•์ธ ๋น„ํ™œ์„ฑํ™”
  3. RVM ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋งŒ๋“ค๊ธฐ: chmod +x rvm-installer
  4. RVM ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ ์‹คํ–‰: ./rvm-installer
  5. rvm ์‚ฌ์šฉ ๊ฐ€๋Šฅ: source /Users/[username]/.rvm/scripts/rvm

๋น„๊ตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

$ printf "1\n2\n" | \head -n1
1

๋Œ€

$ printf "1\n2\n" | \command \head -n1
1

์‘๋‹ต ์—†์ด 2์ฃผ๊ฐ€ ์ง€๋‚ฌ์Šต๋‹ˆ๋‹ค. ํ‹ฐ์ผ“์„ ๋‹ซ์•˜์Šต๋‹ˆ๋‹ค. ์ž์„ธํ•œ ๋‚ด์šฉ์„ ์•Œ๋ ค์ฃผ์‹œ๋ฉด ๋‹ค์‹œ ์—ด๊ฒ ์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰